-
-
Notifications
You must be signed in to change notification settings - Fork 32.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
[DatePicker] Strange black border in the calendar #23532
Comments
@Angelk90 Thanks for opening the issue. We have two possible ways forward, by order of personal preference:
|
This behavior should be fixed in core by #19651 And if it will be done changes from mui/material-ui-pickers#1653 will not be needed at all. But for now we need to properly visualize focused element for a11y. |
@dmtrKovalenko Right, so we agree 1. sounds like the best direction :). In #19651, without more context, I would be in favor of making it a non-default behavior to be more resilient. I believe in order to implement the logic, we will need to determine the list of focusable elements in the element, this logic has limitations and ask for a non-negligeable amount of bundle size: https://bundlephobia.com/[email protected] |
So what do you propose? Close this issue by fixing this border in most of cases (for mobile), or left it open while it not will be fixed at all? |
@dmtrKovalenko I think that hiding the outline on touch devices is a great step in the right direction. Now, I suspect that most people are using Material-UI on the desktop. I wish we had more data to see clearly in the mobile vs desktop split. My best guess is 1/3 mobile and 2/3 desktop. Some of the imperfect data we have available:
Going forward, I think that we will be able to collect this data by looking at the behavior of our documentation. We could have a standalone demo / API pages for mobile and one for desktop. For instance, I think that we could learn a great deal from the number of sessions comparing a https://material-ui.com/api/mobile-date-picker vs https://material-ui.com/api/desktop-date-picker. Soon or later, we will get this information :). Sorry, back to your initial question. I think that we have an opportunity to solve the problem at 100% so I would be in favor of keeping it open until it's resolved for mobile and desktop. |
@oliviertassinari The strange border is still there for MobilePicker |
@ravi-poonia this is expected behaviour because for people with poor vision using datepicker on mobile is extremely required to |
I'm planning to use the MobilePicker for desktop due to some design constraints, so it doesn't look that good. Is there any way to disable it? |
You could pass |
I tried to do that but it's still happening, @dmtrKovalenko can you provide a simple code sample |
Steps to reproduce
Live example: https://v4-0-0-alpha-5.material-ui-pickers.dev/demo/daterangepicker#responsiveness
Bugs
Environment
The text was updated successfully, but these errors were encountered: