-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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] Refine referenceDate
behavior in views
#10863
Conversation
Deploy preview: https://deploy-preview-10863--material-ui-x.netlify.app/ |
I checked how
|
@croraf Thank you for your feedback. 🙏
Your insight makes sense and we have separate issues to tackle the
My changes do not introduce any extra highlighting. It only changes the elements, which receive
As discussed in the issue, this is indeed a new feature that has to be opt-in and as far as I can see - it is the main topic of the original issue, correct me if I'm wrong? 🤔 |
Ok. I need to go push the change of the |
It would probably make sense indeed |
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.
Looks great ! 👌
I've made the necessary changes, updated the description with examples and requesting a re-review. 😉 |
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.
Very nice improvement 🎉 LGTM 💯
Part of #10747
Align the behavior of
referenceDate
on the views (DateCalendar
,DigitalClock
, andMultiSectionDigitalClock
).The behavior on
TimeClock
already makes sense.referenceDate
day focusable (tabindex="0") if no value is present inDateCalendar
instead of today's dayreferenceDate
time focusable (tabindex="0") and scroll the options list to it if no value is present and the date maps to an available option inDigitalClock
referenceDate
time sections focusable (tabindex="0") and scroll the options lists to them if no value is present and the date maps to an available option inMultiSectionDigitalClock
WDYT about🤔MonthCalendar
andYearCalendar
, should we align it to also not mark thereference
month and day as selected, but only focus it?Update
I've also updated the behavior of
YearCalendar
andMonthCalendar
.P.S. The Argos diff is expected if we go with the proposal, because
YearCalendar
andMonthCalendar
do not have theautoFocus
prop set totrue
when used outside ofDateCalendar
.Before
After