This repository has been archived by the owner on Jun 14, 2022. It is now read-only.
"Notice" Block: Dissmissible Button not accessible for screenreader users #381
Labels
bug
Something isn't working
Describe the bug
Screen reader user can't access the control button "Dismiss" for Notice Blocks.
The "Dismiss" notice is a div. it should be a Button, as it has an action.
Also it should provide a alt-text for svg or screen reader text via screen-reader-class in WordPress.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
If you read a post with a screen reader you are supposed to do any action a mouse user can do.
While reading the notice you should first hear the Title, than the message, than access the button for dismiss.
It is important to first hear the whole message, bevor coming to the "Dismiss" Button, otherwise the screen reader user would miss out the notice message.
The "Dismiss" Action should be also possible for screen reader users, as it takes more time to consume websites with screen readers.
The Action "Dismiss" should be really clear, that you disable the message. So the Screen reader text should be "Dismiss [title of notification]"
Screenshots
I have made a little Video:
Clip for behavior with screen reader (not listet) https://youtu.be/REMX11Zqqz8
Version
Device and browser information
Additional context
Not sure how the exact solution is, as I'm not a Developer. But I'm happy to test, if you have a PR.
The text was updated successfully, but these errors were encountered: