- 🇮🇳India ranjith_kumar_k_u Kerala
#4 provides the solution for the Seven theme, but the theme is no more with the core.
Claro and Olivero don't have this issue but the issue exists in "core/modules/system/templates/fieldset.html.twig" file.
Created patch with tests, please review - last update
over 1 year ago 29,365 pass, 1 fail - last update
over 1 year ago 29,366 pass - Status changed to Needs review
over 1 year ago 11:21am 28 April 2023 - Status changed to Needs work
over 1 year ago 2:08pm 28 April 2023 - 🇺🇸United States smustgrave
Can we also get a positive assertion. Meaning if the fieldset isn't empty and the title appears the count should be 1.
Rest looks good.
- First commit to issue fork.
- last update
over 1 year ago 29,366 pass - @rpayanm opened merge request.
- last update
over 1 year ago 29,429 pass - Status changed to Needs review
over 1 year ago 12:29pm 15 June 2023 - last update
over 1 year ago 29,450 pass - Status changed to Needs work
over 1 year ago 2:08pm 15 June 2023 - 🇺🇸United States smustgrave
Issue summary could use some up to date screenshots.
Also since this is changing a core template will need a change record
- Status changed to Needs review
over 1 year ago 10:46am 19 June 2023 - 🇮🇳India ranjith_kumar_k_u Kerala
Created a change record - https://www.drupal.org/node/3367586 →
updated issue summary with before and after screenshots - Status changed to RTBC
over 1 year ago 10:01pm 19 June 2023 - last update
over 1 year ago 29,499 pass - 🇫🇮Finland lauriii Finland
We need FEFM review to decide in which themes this should be fixed.
- last update
over 1 year ago 29,508 pass - Status changed to Needs work
over 1 year ago 11:06am 22 June 2023 - 🇺🇸United States bnjmnm Ann Arbor, MI
Here's the FEFM / A11y review, but I regret to say it's not a clean response to what was being asked above.
It will likely be necessary to come at this from a different angle. The fact that it is currently possible to have empty
<legend>
elements is already not good for accessibility. Making it possible for<legend>
to be truly optional worsens the accessibility.To be level A accessible (level A is the bare minimum), fieldsets must have a legend as the first child element .
So something should be addressed, but not by allowing elements to be less accessible. These are the main things to consider
- Olivero currently allows optional
<legend>
. This should be enforced - It would be best to enforce a non-empty
#title
for fieldsets. We can't suddenly start enforcing this in a non-major release, though, as it could break sites. Adding a deprecation warning in 10 for non-empty titles in 10 (possibly with an additional logged warning?) then enforcing in 11 could work.
- Olivero currently allows optional
- 🇺🇸United States bnjmnm Ann Arbor, MI
Issue summary will need updating given the wrench I just tossed into this.