[PickersDay] Remove PickersDay and promote PickerDay2 as a replacement#21739
[PickersDay] Remove PickersDay and promote PickerDay2 as a replacement#21739michelengelen wants to merge 17 commits intomui:masterfrom
PickersDay and promote PickerDay2 as a replacement#21739Conversation
Signed-off-by: michel <[email protected]>
|
Deploy preview: https://deploy-preview-21739--material-ui-x.netlify.app/ Updated pages:
Bundle size report
|
LukasTy
left a comment
There was a problem hiding this comment.
A couple of additional notes:
-
nitpick: this doesn't look like a pro (DateRangePicker) package change in any way
-
Have you considered the change for PickersDay2 as well?
- Side note: WDYT, @noraleonte, is that component ready to replace the OG one?
It's a breaking change, because of styling requirements. So, now, or wait another ~year 🙈
- Side note: WDYT, @noraleonte, is that component ready to replace the OG one?
-
Now that I have seen this, I can not unsee it. 🙈
How come the day number is not vertically aligned within the button? 😂Screen.Recording.2026-03-19.at.16.40.40.mov
@noraleonte, have you noticed this? Do you have a better fix for this than
line-height: 1? 🤔
|
|
||
| const styleArg = ({ theme }: { theme: Theme }) => ({ | ||
| ...theme.typography.caption, | ||
| display: 'block', |
There was a problem hiding this comment.
Wouldn't flex work here?
As it stands now, this is a tiny BC for anyone who used a week picker example from our docs.
There was a problem hiding this comment.
Would work as well ... I just took the value that was initially set for this.
There was a problem hiding this comment.
agree, it should not impact the docs demo.
Yes, you are right ... I just took this since it was reported from that component in the bug-issue. Will change that.
No, thanks for pointing me to that though.
If possible in any way I would like to include any breaking changes now, ideally with this release. So if there is a decision to be made I would go for it now.
🫣
|
display: block for PickersDay component styledisplay: block for PickersDay component style
@LukasTy I would love to use text-box, but it seems we are a bit early for this, since it is not yet widely adopted |
I think it might be, but seems a bit short notice to include it in this release 🙈 I'm not worried about the component not being ready, it's more that it's a breaking change, comes with a migration guide + we need to check all the demos are still working properly (customization ones especially) 🙈
I haven't noticed it but now it's bugging me. Present in |
|
So, to conclude, I see two paths: Lazy
Proper bad-ass 😆
In both cases, I'd urge setting Does that sound about right, @noraleonte? I leave the decision to @michelengelen. |
|
Yes, that's a pretty accurate summary 👌 |
…ponding imports alongside Signed-off-by: michel <[email protected]>
…picker' into bugfix/21615-misaligned-days-in-picker
Signed-off-by: michel <[email protected]>
Signed-off-by: michel <[email protected]>
Signed-off-by: michel <[email protected]>
Signed-off-by: michel <[email protected]>
display: block for PickersDay component stylePickersDay and promote PickerDay2 as a replacement
…ligned-days-in-picker
Signed-off-by: michel <[email protected]>
Signed-off-by: michel <[email protected]>
Signed-off-by: michel <[email protected]>
Signed-off-by: michel <[email protected]>
…ligned-days-in-picker
This prevents misalignment when the theme used by the user has a
displaydefinition in theirtypography.captiontheme object.Fixes #21615