-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pickers] Use the new ownerState
in PickersCalendarHeader
, PickersArrowSwitcher
and DayCalendarSkeleton
#15499
base: master
Are you sure you want to change the base?
Conversation
Deploy preview: https://deploy-preview-15499--material-ui-x.netlify.app/ |
…owSwitcher and DayCalendarSkeleton
fd4865a
to
5c9341e
Compare
<DayCalendarSkeletonDay | ||
key={index2} | ||
variant="circular" | ||
width={DAY_SIZE} | ||
height={DAY_SIZE} | ||
className={classes.daySkeleton} | ||
ownerState={{ day }} | ||
data-day-in-month={dayInMonth} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can create a DayCalendarSkeletonOwnerState
but the component is probably not used a lot and even less overriden with styleOverrides
so I went with simplicity here
|
||
export type SlideDirection = 'right' | 'left'; | ||
|
||
interface PickerSlideTransitionOwnerState extends PickerOwnerState { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not used in any styleOverrides
, only in useUtilityClasses
but I'm also unifying the parameters of this hook
expectedClassName: pickersArrowSwitcherClasses.rightArrowIcon, | ||
}, | ||
}, | ||
// TODO: Uncomment once `describeConformance` does not enforce the presence of `ownerState.className` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Part of #14475