Skip to content

Commit

Permalink
Merge branch 'main' into qa/block-link-card-list
Browse files Browse the repository at this point in the history
  • Loading branch information
stephiescastle committed Aug 28, 2024
2 parents 0e2bc91 + d002fe4 commit 7880265
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const emit = defineEmits(['accordionItemOpened', 'accordionItemClosed'])
>
<component
:is="headingLevel"
class="!font-medium"
class="!font-normal !tracking-normal"
>
<button
v-bind-once="{ id: headingId, 'aria-controls': panelId }"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/>
</div>
<MixinCarousel
class="md:hidden sm:-ml-10 py-14 lg:py-10 -mt-10 overflow-x-hidden"
class="md:hidden py-14 lg:py-10 -mt-10 overflow-x-hidden"
indent="col-1"
:slides-per-view="3"
no-links
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,11 @@
<div
v-else-if="block.blockType == 'ListBlock' && block.field === 'card_grid'"
:key="`cardGridBlock${index}`"
class="lg:mb-18 mb-10"
class="LayoutHelper md:BaseGrid md:container md:mx-auto lg:mb-18 mb-10"
>
<BlockCardGrid :cards="block.items" />
<div class="lg:col-start-2 lg:col-end-12 md:col-span-full md:px-4 px-0 relative">
<BlockCardGrid :cards="block.items" />
</div>
</div>

<div
Expand Down
9 changes: 5 additions & 4 deletions packages/vue/src/components/CalendarButton/CalendarButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,10 @@ export default defineComponent({
init() {
let recurrence = undefined
if ((this.isAllDay && this.endDatetime) || (this.startDate && this.endDatetime)) {
console.log('initing')
// Calculate how many full days
const startDateDayjs = this.startDatetime
? dayjs(this.startDatetime)
: dayjs(this.startDate)
: dayjs(this.startDate).tz('America/Los_Angeles')
const endDateDayjs = dayjs(this.endDatetime)
const difference = endDateDayjs.diff(startDateDayjs, 'day') + 1
recurrence = { frequency: 'DAILY', interval: 1, count: difference }
Expand All @@ -95,9 +94,11 @@ export default defineComponent({
location: this.location ? this.location : undefined,
description: this.icsDescription,
start: this.startDatetime
? new Date(this.startDatetime)
? // @ts-ignore
new Date(dayjs(this.startDatetime))
: this.startDate
? new Date(this.startDate)
? // @ts-ignore
new Date(dayjs(this.startDate).tz('America/Los_Angeles'))
: new Date(),
end: !this.isAllDay && this.endDatetime ? new Date(this.endDatetime) : undefined,
recurrence
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<!-- facts -->
<BlockCardGrid
v-if="data.facts"
class="3xl:col-end-13 xl:col-end-11 md:px-4 lg:px-0 relative col-start-2 col-end-13 px-0 mt-12"
class="3xl:col-end-13 xl:col-end-11 md:px-4 lg:px-0 relative sm:col-start-2 sm:col-end-13 px-0 mt-12"
:cards="data.facts"
/>
</div>
Expand Down
2 changes: 2 additions & 0 deletions packages/vue/src/utils/dayjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import dayjs from 'dayjs'
import updateLocale from 'dayjs/plugin/updateLocale.js'
import localizedFormat from 'dayjs/plugin/localizedFormat.js'
import timezone from 'dayjs/plugin/timezone.js'
import utc from 'dayjs/plugin/utc.js'
import advancedFormat from 'dayjs/plugin/advancedFormat.js'
import duration from 'dayjs/plugin/duration.js'
import minMax from 'dayjs/plugin/minMax.js'
Expand All @@ -10,6 +11,7 @@ import minMax from 'dayjs/plugin/minMax.js'
import 'dayjs/locale/en-gb.js'

dayjs.extend(timezone)
dayjs.extend(utc)
dayjs.extend(advancedFormat)
dayjs.extend(localizedFormat)
dayjs.extend(updateLocale)
Expand Down

0 comments on commit 7880265

Please sign in to comment.