- Issue created by @dcam
This started mostly because the "Select" form element label was repeated several times in the Style Guide page. My accessibility validator flagged it over and over because it wasn't unique. I realized it was because the same subform was getting built and inserted into other elements repeatedly, namely fieldsets and details. In turn the fieldset and details were then reused as Vertical Tabs sections, making the problem even worse.
Thank you for considering this. For those of us who are going to have accessibility reviewers test the page, it would be nice if we aren't having to deal with these false-positives.
<details>
from the form to the common HTML elements. Where they belong is kind of subjective. They're non-form container elements. Drupal Core's documentation says they can be used in non-form contexts, suggesting that the render element is sort of intended to be used in forms. I would prefer to see them containing basic text instead of child form elements. But that's just me. Feel free to disagree.<fieldset>
rather than reusing existing elements.Doing this reduces the number of validation errors on the page by about 10.
Active
2.0
Code