Modal has no accessible name error when using block editor
-
When I build a popup using the block editor, I receive an accessibility error on the front end:
Modal has no accessible name (4.1.2 Name, Role, Value)However, when using the Classic Editor, you’re presented with a Popup Title field in the editor. This field appears to feed an aria-labelledby attribute on the modal container element that satisfies the accessibility requirement.
The block editor allows us to use block patterns and custom blocks in our pop-ups, but we need our sites to be as accessible as possible.
Is there a way to include that title field while using the block editor? If the Popup Title field was present, I could hide it visually, allowing it to still feed that aria-labelledby attribute. Or is there another solution for this problem?
You must be logged in to reply to this topic.