Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-12025

[RGAA] Add aria-describedby for field in error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.8.0
    • None
    • RGAA
    • None
    • 4.8.0 M11

      RGAA purpose fields in error should be linked to the error message by 
      aria-describedby attribute

      <div class="field">
          <div class="error" id="error-firstname-25833552834913553">Le prénom est obligatoire
          </div>
          <div class="label">
               <label for="firstname-25833552834913553">Prénom<span class="mandatory-marker">*</span></label>
          </div>
          <div class="input invalid">
               <input aria-required="true" value="" name="firstname" id="firstname-25833552834913553" type="text" aria-invalid="true" aria-describedby="error-firstname-25833552834913553">
          </div>
      </div>

       

            laurence Laurence Aumeunier
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: