Skip to content

Commit 6397d13

Browse files
authored
Fix Day.js bug where selectedDayTextStyle overwrites todayTextStyle (#393)
1 parent 548445f commit 6397d13

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CalendarPicker/Day.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export default function Day(props) {
127127
if (isToday) {
128128
computedSelectedDayStyle = styles.selectedToday;
129129
// todayTextStyle prop overrides selectedDayTextColor (created via makeStyles)
130-
selectedDayTextStyle = [todayTextStyle || styles.selectedDayLabel, propSelectedDayTextStyle];
130+
selectedDayTextStyle = [todayTextStyle];
131131
}
132132

133133
const custom = getCustomDateStyle({ customDatesStyles, date: thisDay });

0 commit comments

Comments
 (0)