-
-
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] Is there a way to control the step size sections other than minutes for the field components #13732
Comments
Hello, @xxKeefer. To better understand the use case, could you provide a bit more information about your requirement? P.S. The Picker (DigitalClock) components support a We could consider using |
I think you are right with the a11y issues, it's not something my team considered. We are producing a set of reporting dashboard to display traffic data. the data is aggregated on 15min, 5min, 1min and 20sec time windows. We allow our users to seek through the data of time and want to step in those increments. Our user base is a kind of small targeted set of users that are mostly traffic control people, i don't think we have considered the a11y of it as much because it is unlikely our users will need the use of a11y tools. Even considering that it might be less than optimal for a11y this is something we will probably want to override. I've tried to provide new functions to the various onKey props but it doesn't seem to override the default behavior. In this demo i have tried to just override the function to do a noop but i hasn't changed any behavior. Am i missing something? |
Your sandbox is probably private, I can't access it.
Thank you for sharing more information about your use case. 🙏 I'm adding this issue to our grooming board to discuss a solution. 😉 |
You're right sorry about that forgot to change the perms. the demo should be unlisted now. Yeah I can see how the PageUp and PageDown stepping by five might not make sense with a step size prop specified. Perhaps if a step size is specified, both the ArrowUp/ArrowDown and PageUp/PageDown would use the specified step size? I'm not a a11y expert though. I'll leave it with you guys then. Keen to hear the outcome. |
|
🤦🏻 Sorry for the time waste, i didn't hit the move sandbox / confirm unlisted button. I have verified with incognito mode now >.< |
Using this issue as a host to ditch |
The problem in depth
i can see the prop for
minutesStep
for https://next.mui.com/x/api/date-pickers/single-input-date-time-range-field/but i want to control the step size for the other sections, specifically the seconds section. Is there a way to do that?
Your environment
`npx @mui/envinfo`
Search keywords: mui-x-date-picker field-components
Order ID: 89424
The text was updated successfully, but these errors were encountered: