Skip to content

Commit

Permalink
fix v2 dark theme
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiees2 committed Apr 3, 2024
1 parent ffd2a66 commit ab01e7f
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/Time/TimePickerModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,16 @@ export function TimePickerModal({
[setFocused, setLocalHours, setLocalMinutes]
)

const v3Color = theme.dark
? theme.colors.elevation.level3
: theme.colors.surface
const v2Color = theme.dark
? overlay(10, theme.colors.surface)
: theme.colors.surface
let color
if (theme.isV3) {
color = theme.dark

Check failure on line 136 in src/Time/TimePickerModal.tsx

View workflow job for this annotation

GitHub Actions / lint

Replace `⏎······?·theme.colors.elevation.level3⏎·····` with `·?·theme.colors.elevation.level3`
? theme.colors.elevation.level3
: theme.colors.surface
} else {
color = theme.dark
? overlay(10, theme.colors.surface)
: theme.colors.surface
}

return (
<Modal
Expand Down Expand Up @@ -170,7 +174,7 @@ export function TimePickerModal({
style={[
styles.modalContent,
{
backgroundColor: theme.isV3 ? v3Color : v2Color,
backgroundColor: color,
},
]}
>
Expand Down

0 comments on commit ab01e7f

Please sign in to comment.