-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[StaticDatePicker] Add className and slot to PickerStaticWrapper #29619
Conversation
@material-ui/lab: parsed: +0.09% , gzip: +0.07% |
packages/mui-lab/src/internal/pickers/wrappers/StaticWrapper.tsx
Outdated
Show resolved
Hide resolved
packages/mui-lab/src/internal/pickers/wrappers/StaticWrapper.tsx
Outdated
Show resolved
Hide resolved
Cool, I'll make the change and push it back up today |
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.
Let's add a test to confirm that this works. Apart from that looks good 👍
packages/mui-lab/src/internal/pickers/wrappers/StaticWrapper.tsx
Outdated
Show resolved
Hide resolved
We need to also update the |
@mnajdova Since I've switched the className to be more specific, I get this error: If this is a firm rule, then it would have to be named Also, for testing. What in particular are you thinking we should test. It looks like |
Right.. I would say we need to rename this component, it is an internal component shouldn't affect developers. Would you be willing to do this? It would wider the scope fo the PR. @michaldudak what do you think about this rename?
No, we keep the component names consistent with the keys, as I mentioned above in my opinion the component name is too generic in this case.
Ensuring that |
100% agree. It may be internal but internal components are also maintained by human beings that sometimes may need some assistance in figuring out what the component is for 😉. Let's rename the component. |
- Updated the static pickers that use it - Updated typescript defintions.
9666f28
to
5b5ab49
Compare
5b5ab49
to
316dd70
Compare
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.
Perfect! Thanks for the work and patience :)
@mnajdova What's the next step? |
I've merged latest master, let's wait for the green build and merge :) |
Great job @kkorach thanks for the contribution! |
This PR adds the className
MuiStaticWrapper
and slotroot
to the StaticWrapper component used by the StaticDatePicker. The name does seem a bit generic, but the StaticWrapper is only used by the DatePicker components. I couldn't find any other uses of the name StaticWrapper.