Skip to content

Commit 28744b8

Browse files
(Datepicker): apply slds-day_adjacent-month to disabled dates as well
1 parent 55fa1e9 commit 28744b8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/scripts/Datepicker.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,9 @@ const DatepickerDate: FC<DatepickerDateProps> = (props) => {
246246
const isToday = date.value === today;
247247
const isAdjacentMonth = date.month !== cal.month;
248248
const dateClassName = classnames({
249-
'slds-color__text_gray-6': !enabled && !isAdjacentMonth,
250249
'slds-is-selected': selected,
251250
'slds-is-today': isToday,
252-
'slds-day_adjacent-month': isAdjacentMonth,
251+
'slds-day_adjacent-month': isAdjacentMonth || !enabled, // Considering the meaning, applying this class to disabled dates isn't necesarrily correct.
253252
});
254253
return (
255254
<td

0 commit comments

Comments
 (0)