Setting ARIA role for custom blocks
-
Apparently, block props include a pre-defined value for the aria role (role=”document”). Is there a way to overwrite this value with a more appropriate role for my block? I thought setting the attribute in the object that’s passed to
useBlockProps( { role: "presentation" } )
would work as suggested here: https://github.com/WordPress/gutenberg/issues/42158I believe this issue is still being worked, but I’m curious if others have found another way.
- The topic ‘Setting ARIA role for custom blocks’ is closed to new replies.