Skip to content

Commit

Permalink
fix(lemon-ui): Fix calendar month being clickable (#19294)
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes authored Dec 14, 2023
1 parent 82d22cc commit a86a31a
Show file tree
Hide file tree
Showing 43 changed files with 22 additions and 10 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ const meta: Meta<typeof LemonCalendar> = {
},
parameters: {
mockDate: '2023-01-26',
testOptions: {
include3000: true,
},
},
tags: ['autodocs'],
}
Expand Down
16 changes: 6 additions & 10 deletions frontend/src/lib/lemon-ui/LemonCalendar/LemonCalendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,12 @@ export function LemonCalendar(props: LemonCalendarProps): JSX.Element {
/>
)}
</th>
<th className="relative" colSpan={5}>
<LemonButton
status="muted"
fullWidth
center
data-attr={`lemon-calendar-month-title-${month}`}
className="text-xs font-bold text-muted uppercase cursor-default"
>
{startOfMonth.format('MMMM')} {startOfMonth.year()}
</LemonButton>
<th
className="relative font-title font-semibold text-muted-alt uppercase cursor-default text-center"
data-attr={`lemon-calendar-month-title-${month}`}
colSpan={5}
>
{startOfMonth.format('MMMM')} {startOfMonth.year()}
</th>
<th className="relative">
{showRightMonth && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ const meta: Meta<typeof LemonCalendarSelect> = {
component: LemonCalendarSelect,
parameters: {
mockDate: '2023-01-26',
testOptions: {
include3000: true,
},
},
tags: ['autodocs'],
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ const meta: Meta<typeof LemonCalendarRange> = {
component: LemonCalendarRange,
parameters: {
mockDate: '2023-01-26',
testOptions: {
include3000: true,
},
},
tags: ['autodocs'],
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ const meta: Meta<typeof LemonCalendarRangeInline> = {
component: LemonCalendarRangeInline,
parameters: {
mockDate: '2023-01-26',
testOptions: {
include3000: true,
},
},
tags: ['autodocs'],
}
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/styles/utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1125,6 +1125,10 @@ $decorations: underline, overline, line-through, no-underline;
font-family: var(--font-sans);
}

.font-title {
font-family: var(--font-title);
}

.font-mono {
font-family: var(--font-mono);
}
Expand Down

0 comments on commit a86a31a

Please sign in to comment.