Multiple forms per page, accessibility issue
-
When I run an accessibility test on a page with multiple WPCF7 forms, I get this warning:
The landmark must have a unique aria-label, aria-labelledby, or title to make landmarks distinguishable
What this means is that the validator found two divs with the aria role “Form”, but they don’t have aria-label or title attributes to distinguish them from each other.
I have found shortcodes and hooks to add HTML attributes to the form tag that this plugin generates, but I’ve never found a way to alter the wrapping div with the role attribute.
I need to be able to either remove this role attribute, or, better yet, pass the title of the form, from the shortcode, to this wrapping div, as a title or aria-label attribute.
- The topic ‘Multiple forms per page, accessibility issue’ is closed to new replies.