Skip to content

Commit bfe55e4

Browse files
committed
Remove use of darken in CSS, which latest dart-sass doesn't support
1 parent 5bd3ae6 commit bfe55e4

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

src/components/DateRangePicker.jsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -764,12 +764,16 @@ export default withStyles(({ reactDates: { color, zIndex } }) => ({
764764
zIndex: zIndex + 2,
765765

766766
':hover': {
767-
color: darken(color.core.grayLighter, 0.1),
767+
// Changed from `darken(${color.core.grayLighter}, 10%)` since
768+
// latest versions of dart-sass don't support it.
769+
filter: 'brightness(0.9)',
768770
textDecoration: 'none',
769771
},
770772

771773
':focus': {
772-
color: darken(color.core.grayLighter, 0.1),
774+
// Changed from `darken(${color.core.grayLighter}, 10%)` since
775+
// latest versions of dart-sass don't support it.
776+
filter: 'brightness(0.9)',
773777
textDecoration: 'none',
774778
},
775779
},

src/components/SingleDatePicker.jsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -714,12 +714,16 @@ export default withStyles(({ reactDates: { color, zIndex } }) => ({
714714
zIndex: zIndex + 2,
715715

716716
':hover': {
717-
color: darken(color.core.grayLighter, 0.1),
717+
// Changed from `darken(${color.core.grayLighter}, 10%)` since
718+
// latest versions of dart-sass don't support it.
719+
filter: 'brightness(0.9)',
718720
textDecoration: 'none',
719721
},
720722

721723
':focus': {
722-
color: darken(color.core.grayLighter, 0.1),
724+
// Changed from `darken(${color.core.grayLighter}, 10%)` since
725+
// latest versions of dart-sass don't support it.
726+
filter: 'brightness(0.9)',
723727
textDecoration: 'none',
724728
},
725729
},

0 commit comments

Comments
 (0)