a11y bug Pending

User tests: Successful: Unsuccessful:

avatar chmst
chmst
15 Aug 2025

Pull Request for Issue # .
Issue detected by @laoneo

Summary of Changes

Message "Group/Fieldset does not have an accessible name" due to the missing legend in user login.
This PR adds an accessile name to the fieldset.

Testing Instructions

Open the user login. Check the sourcecode

Actual result BEFORE applying this Pull Request

There is only <fieldset>
The IBM accessibility checher shows an error "Group/Fieldset does not have an accessible name"

Expected result AFTER applying this Pull Request

There <fieldset role="group" aria-label="Login with user credentials">
The IBM accessibility checher is happy

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar chmst chmst - open - 15 Aug 2025
avatar chmst chmst - change - 15 Aug 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 15 Aug 2025
Category Front End com_users Language & Strings
avatar brianteeman
brianteeman - comment - 15 Aug 2025

Why not add a visible legend?

avatar brianteeman
brianteeman - comment - 15 Aug 2025

or do as we do elsewhere

<legend class="visually-hidden">

aria-* should always be a last resort when no other solution is possible

avatar brianteeman
brianteeman - comment - 15 Aug 2025

The first element inside the fieldset must be a legend element, which provides a label or description for the group

https://www.w3.org/TR/WCAG20-TECHS/H71.html#:~:text=The%20first%20element%20inside%20the,related%20radio%20buttons%20and%20checkboxes.

avatar brianteeman
brianteeman - comment - 15 Aug 2025

and you dont need to add the role either as group is implicit for a fieldset https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/fieldset

avatar laoneo
laoneo - comment - 15 Aug 2025

Thank you

avatar chmst chmst - close - 15 Aug 2025
avatar chmst
chmst - comment - 15 Aug 2025

Legend is possible it is only requested to have an ara-label but feel free to make your pr

avatar chmst chmst - change - 15 Aug 2025
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2025-08-15 13:08:41
Closed_By chmst
Labels Added: a11y bug

Add a Comment

Login with GitHub to post a comment