Accessibility Issue Reported via Siteimprove - Issue Form field missing a label

Created on 17 December 2024, 4 months ago

Please see the following url for our Enforcement Actions selections: https://www.op.nysed.gov/enforcement/enforcement-actions

Issue:

Siteimprove suggests adding a or aria-labelledby to address an accessibility issue with the above page. However, this change would need to be made in the Select2 contributed module, which is outside of our control.

Request:

Can you help us identify a solution for this accessibility issue, whether it's something we can fix on our end or if it requires an update to the Select2 module itself? Any guidance would be appreciated.

More Information:

We have a view page where we have a dropdown for the Year field and multiselect with select2 for Month and Professions. We have Siteimprove crawling our site for accessibility issues and it is tagging the Month and Profession dropdowns as an accessibility issue.

Here is a page report: https://my2.siteimprove.com/Inspector/327230/A11Y/Page?pageId=9971988966...

Here is a sample code that it is tagged.

πŸ“Œ Task
Status

Active

Version

2.0

Component

Render element

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @rahulrao.cs
  • πŸ‡ΊπŸ‡ΈUnited States nmillin

    @rahulrao.cs have you tried updating versions of select2? It looks like you are on version 4.0.13 and https://github.com/select2/select2/releases (and in issues on github) mentioned the 4.1 version has accessibility improvements.

    I ask because I have the same SiteImprove issue that I'm trying to address! I'm going to try updating to 4.1 and I'll make a note here on what happens, but maybe you'll beat me to it and could report too.

  • Hello @nmillin. thanks for the response and suggestion - that prompted us to upgrade the library to version 4.1.0-rc.0 and the module to 2.0. Good and bad news. Before the upgrades, it was flagging 2 issues (one on each search box) with "Form field missing a label", but fortunately one of those issues was eliminated. So the upgrades did result in an improvement, but didn't fully resolve the issue. I hope you have better luck than us.

Production build 0.71.5 2024