-
-
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] UX design review v6.3.0 TimePicker component #8964
Comments
I have found another important design issue: 6. Handle touch startOn https://mui.com/x/react-date-pickers/time-picker/#basic-usage the clock only responds on "touch move" and "touch end". It should respond on "touch start" too, this is wrong: Screen.Recording.2023-05-12.at.15.18.17.movYou can compare the UX on a native Android time picker, this feels good: Screen.Recording.2023-05-12.at.15.51.56.movhttps://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/time It also feels correct in http://react-toolbox.io/#/components/time_picker too. |
@oliviertassinari Can you elaborate on 1? I'm not seeing any blurriness. 2 & 3. These should be two methods:
|
@gerdadesign I'm referring to https://developer.mozilla.org/en-US/docs/Web/API/Element/blur_event
I was thinking of something in this line:
The close of selecting the final value feels really strange to me. I'm not picking the value in the order they are shown. I think that it would be great to test this with end-users, but alternatively, is there any other date picker that behaves like this end users would have been taught on? I can't remember any.
I can reproduce it on the latest version. It might be because of my setting: |
I have found a few other design issues, that are probably not important in the context of a time picker, since they are keyboard related, and using the popular to use the keyboard is strange, why are you not using the input in the first place? However, they feel noticeable in a date time picker https://mui.com/x/react-date-pickers/date-time-picker/ or range #9528. 7. Unstable element positionCompare these 3 cases: a. https://v4.mui.com/components/pickers/#time-pickers Screen.Recording.2023-08-11.at.15.18.36.movb. https://mui.com/material-ui/react-autocomplete/#combo-box Screen.Recording.2023-08-11.at.15.18.07.movc. https://mui.com/x/react-date-pickers/time-picker/#basic-usage Screen.Recording.2023-08-11.at.15.18.22.mova and b feels great but c feels really annoying not to have a stable element focus position. 8. Keyboard arrow left & rightI wonder if we don't miss the handling of ArrowLeft & ArrowRight. For example https://v4.mui.com/components/pickers/#time-pickers Screen.Recording.2023-08-11.at.15.13.15.mov9. No contrast of focus visibleThe focus visible has barely any contrast. In Screen.Recording.2023-08-11.at.15.15.05.movCan you see the focus move? |
|
This is a design review on #7958, reporting all the design issues that I can spot cc @gerdadesign
Same as #7440, I think that these could be great items that Nora could work on.
1. Input blur
On https://mui.com/x/react-date-pickers/time-picker/#basic-usage, the input is blurred when reaching for the icon to open the panel and focused back again. It's distracting & confusing:
Screen.Recording.2023-05-12.at.02.27.12.mov
To compare the UX with https://mui.com/material-ui/react-autocomplete/#combo-box feels better, it doesn't blur:
Screen.Recording.2023-05-12.at.02.31.49.mov
2. AM/PM early exit
https://mui.com/x/react-date-pickers/time-picker/#basic-usage I don't understand why selecting AM or PM validates the value, I didn't press the OK button yet.
Screen.Recording.2023-05-12.at.02.33.57.mov
3. OK button & Autovaliation
https://mui.com/x/react-date-pickers/time-picker/#basic-usage I don't understand what the OK button is for.
When I blur or press Enter the value is still persisted.
If the value would be cleared, I would understand, but it's not the case, it's not like with Ant Design: https://ant.design/components/date-picker#components-date-picker-demo-switchable.
I think that it would be great to have two modes:
a. the current one but without the OK button, it's sets a wrong expectation
b. the Ant Design like UX (a tradeoff that reduce end-user mistakes).
4. Laggy keyboard interaction
Open https://mui.com/x/react-date-pickers/time-picker/#basic-usage and start using the keyboard, it feels like it lags behind
Screen.Recording.2023-05-12.at.02.37.17.mov
when you press a bit too much the button, the list doesn't move. I would expect no animations and an instant handling of the keyboard events.
I understand the use case for the mouse though, since you can't spam clicks, it makes sense to have this smooth animation.
5. Time slot spacing
I feel like there could be a bit more right spacing for the scrollbar:
maybe a few more pixels (1? 2? 3?) like in Ant Design, this feels better:
https://ant.design/components/date-picker#components-date-picker-demo-switchable
But overall, I think that the design direction taken by the Ant Design and the native time picker feels better:
A smaller height (to see more options at once), a larger width (to still have enough space to click/tap on it).
The text was updated successfully, but these errors were encountered: