Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-151194

Text field doesn't have an id and label is using for attribute referring to the name of the input

Details

    Description

      Description: Text field doesn't have an ID and label is using for attribute referring to the name of the input, https://www.w3.org/WAI/WCAG21/Understanding/info-and-relationships is not respected
      Our clients are public institutions that by law need to pass this accessibility OAW tool, could be accessed here if you have an account https://administracionelectronica.gob.es/comunidades/verPestanaMas.htm?idComunidad=accesibilidad#.Yl5_EXVBzmH

      Steps:
      1. Create a form and add a text field

      2. Save and preview this form, inspect the input code

      Actual: Text field doesn't have an ID to map the for attribute from the label

      Expected: Text field should have an ID to map the for attribute from the label

      Notes:
      The htmlFor and ID for text was removed in https://github.com/liferay-forms/liferay-portal/commit/c75048c163ab62c78029c5a7dbcfcb67f5b2a86a
      But htmlFor attribute was added back on https://github.com/liferay/liferay-portal/commit/1066cd0499503953f59762541c1ae5aa4976f503 so now for has an ID and is not pointing to any element, which is incorrect

      Attachments

        Issue Links

          Activity

            People

              chao.wang Chao Wang
              georgel.pop Georgel Vasile Pop
              Kiyoshi Lee Kiyoshi Lee
              Georgel Vasile Pop Georgel Vasile Pop
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                18 weeks, 6 days ago

                Packages

                  Version Package
                  7.2.X
                  7.3.X
                  7.4.3.25 CE GA25
                  7.4.3.26 CE GA26
                  Master