Skip to content

Commit

Permalink
Code review: Alex
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasTy committed Jul 12, 2023
1 parent af6d616 commit 52aacee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/x-date-pickers/src/PickersDay/PickersDay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,16 @@ const useUtilityClasses = (ownerState: PickersDayProps<any>) => {
classes,
} = ownerState;

const isHiddenDaySpacingFiller = outsideCurrentMonth && !showDaysOutsideCurrentMonth;
const slots = {
root: [
'root',
selected && (!outsideCurrentMonth || showDaysOutsideCurrentMonth) && 'selected',
selected && !isHiddenDaySpacingFiller && 'selected',
disabled && 'disabled',
!disableMargin && 'dayWithMargin',
!disableHighlightToday && today && 'today',
outsideCurrentMonth && showDaysOutsideCurrentMonth && 'dayOutsideMonth',
outsideCurrentMonth && !showDaysOutsideCurrentMonth && 'hiddenDaySpacingFiller',
isHiddenDaySpacingFiller && 'hiddenDaySpacingFiller',
],
hiddenDaySpacingFiller: ['hiddenDaySpacingFiller'],
};
Expand Down

0 comments on commit 52aacee

Please sign in to comment.