? ? Success

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
28 Aug 2016

Every form with a fieldset should also have a legend. The login form does not

Summary of Changes

Add a legend to the fieldset using a new language string and with a css class that renders the text invisible.

Testing Instructions

Apply PR and go to login page (not module) on the front end
Check the code and you will find after the fieldset tag a legend tag

<legend class="element-invisible">Login Form</legend>

avatar brianteeman brianteeman - open - 28 Aug 2016
avatar brianteeman brianteeman - change - 28 Aug 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 28 Aug 2016
Category Front End Components
avatar joomla-cms-bot joomla-cms-bot - change - 28 Aug 2016
Labels Added: ?
d51d179 28 Aug 2016 avatar brianteeman oops
avatar joomla-cms-bot joomla-cms-bot - change - 28 Aug 2016
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 28 Aug 2016
Category Front End Components Front End Components Language & Strings
avatar brianteeman brianteeman - change - 28 Aug 2016
Category Front End Components Language & Strings Accessibility Components Front End Language & Strings
avatar brianteeman brianteeman - change - 28 Aug 2016
Labels
Easy No Yes
avatar C-Lodder
C-Lodder - comment - 28 Aug 2016

Legend is not required, but instead optional. So not really any point in rendering unnecessary, hidden markup

avatar jeckodevelopment
jeckodevelopment - comment - 28 Aug 2016

Groupings of form controls, typically groups of related checkboxes and radio buttons, sometimes require a higher level description (such as "Shipping Method" for a group of shipping option radio buttons). This descriptive text can be associated to the group of form controls using <fieldset> and <legend>. The <fieldset> identifies the entire grouping and <legend> identifies the grouping's descriptive text. Using <fieldset> and <legend> ensures that the text description is read to screen reader users when the grouping is navigated to.
From http://webaim.org/techniques/forms/

avatar C-Lodder
C-Lodder - comment - 28 Aug 2016

@jeckodevelopment - Screen readers to not read hidden elements (display:none;). We have 2 options:

  1. Close this PR
  2. Update the PR and use text-indent: 9999; instead of display:none;
avatar brianteeman
brianteeman - comment - 28 Aug 2016

Disagree

avatar C-Lodder
C-Lodder - comment - 28 Aug 2016

Disagree with what? What we know so far:

  1. <legend> is optional: (Ref)
  2. Screen readers do not read text that is hidden using display:none; or visibility:hidden; (Ref)

Therefore is screen readers won't detect it (as it's hidden) and it's an optional element, why add it?

avatar brianteeman
brianteeman - comment - 28 Aug 2016

My mistake in my memory our class element invisible was the equivalent to
the bootstrap three class sr-only.

avatar brianteeman brianteeman - change - 28 Aug 2016
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2016-08-28 16:15:39
Closed_By brianteeman
avatar brianteeman
brianteeman - comment - 28 Aug 2016

Closed

Add a Comment

Login with GitHub to post a comment