Our buttons use aria-checked instead of aria-pressed attribute #14823
Labels
domain:accessibility
This issue reports an accessibility problem.
intro
Good first ticket.
squad:core
Issue to be handled by the Core team.
type:bug
This issue reports a buggy (incorrect) behavior.
Milestone
📝 Provide detailed reproduction steps (if any)
✔️ Expected result
Per WAI-ARIA spec a proper attribute for a button role is
aria-pressed
attribute.❌ Actual result
It has a following markup:
We're using
aria-checked
which is invalid attribute for this role.It's not limited to show blocks, other "simple" buttons have this issue too, just enable other features of editor (like bold, undetline, lists etc) for your current selection and run following code in devtools:
❓ Possible solution
Just change it to
aria-pressed
and all should be good.📃 Other details
I noticed this during live accessibility workshop session on 17th of August. If needed more info could be found there, It should be around 60-70 minute mark.
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: