-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Aria live message always displayed #3924
Comments
As Svish points out in #3924 (comment), the issue happens when customising the CSS of the date-picker. Specifically, the aria message will be visible if you're overriding the whole styling for the
So the fix is to add that rule in your custom CSS or to explicitly use in the custom datepicker. Outdated:
.react-datepicker__aria-live {
display: none;
} |
@martijnrusschen Please fix this. Latest version is not usable this way. And a css workaround shouldn't be the solution for it. |
Is there any plans to fix it? Why have it appeared? It also ruins tests for this component |
Suddenly noticed this aria message here too now. Our CSS for the date-picker is fully custom, so we don't use any of the styles coming with the package. I'm guessing this is the case for others who see this text appearing too? I think the actual fix for us with custom CSS would then be to copy the appropriate styles for this new aria element: .react-datepicker__aria-live {
position: absolute;
clip-path: circle(0);
border: 0;
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
width: 1px;
white-space: nowrap;
} Removing it with |
same problem. somehow the latest version of css is not in the built package. |
I'ld also like to point out that the displayed text is forced as english, which may not be the current language used in the website. Not beeing able to set the language is unusable for an ARIA text (well, this means that we have to use our own aria + translation system, and that this feature is quite useless to begin with). |
+1 |
Is this related to this? |
Yes it is. Switching to an optional ariaLiveRegion would be the wisest choice (imho). |
We have different experience, we had this exact issue in 4.8.0 already, we tried updating to 4.11.0 which did not help... |
Making an important accessibility feature optional, is not a good thing. The solution to this issue should be fairly simple, just update your custom CSS to hide the aria region as I described her: #3924 (comment). If you're not using custom CSS, then it's probably related to a different issue than this... |
It should at least be possible to configure the text not to be printed out - that's what configurations are for. An only CSS solution is not suitable for every situation. Using "areaLiveRegion" would be an ugly hack. |
Per the comment above, changing |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
Describe the bug
After the commit for the Aria Live message 3070e4a I now get
Selected date: Thursday, February 2nd, 2023
above my datepicker.To Reproduce
Pick a date from a standard datepicker
Expected behavior
The aria live message should not show up on top of the datepicker
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: