Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessibility issues in MultiSelect component #7667

Open
manu-mohan-code opened this issue Jan 31, 2025 · 1 comment
Open

Accessibility issues in MultiSelect component #7667

manu-mohan-code opened this issue Jan 31, 2025 · 1 comment
Labels
Component: Accessibility Issue or pull request is related to WCAG or ARIA

Comments

@manu-mohan-code
Copy link

Describe the bug

There are many accessibility issues reported while testing with axe DevTools. Below are the issues reported in the tool

  1. Ensure every ARIA input field has an accessible name

    <ul class="p-multiselect-items p-component" role="listbox" aria-multiselectable="true" data-pc-section="list">

    Image
  2. Ensure elements with ARIA roles have all required ARIA attributes

    <input id="city" type="text" role="combobox" aria-expanded="true" tabindex="0" data-pc-section="input" readonly="" value="">

    Image
  3. Ensure every ARIA toggle field has an accessible name

    <div id="pr_id_50" class="p-checkbox p-component" data-p-highlight="false" data-p-disabled="false" role="checkbox" aria-checked="false" data-pc-name="checkbox" data-pc-section="root">

    Image
  4. Ensure every form element has a label

    li:nth-child(4) > .p-multiselect-checkbox[data-pc-section="checkboxcontainer"] > .p-checkbox[data-pc-name="checkbox"][data-pc-section="root"] > .p-checkbox-input[type="checkbox"]

    Image
  5. Ensure interactive controls are not nested as they are not always announced by screen readers or can cause focus problems for assistive technologies

    <div id="pr_id_50" class="p-checkbox p-component" data-p-highlight="false" data-p-disabled="false" role="checkbox" aria-checked="false" data-pc-name="checkbox" data-pc-section="root">

    Image
  6. Ensure elements that have scrollable content are accessible by keyboard

    <div class="p-multiselect-items-wrapper" data-pc-section="wrapper" style="max-height: 200px;">

    Image

Kindly look into this

Reproducer

https://stackblitz.com/edit/gwtjg5lu

System Information

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.20.3 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    primereact: latest => 10.9.1 
    react: 18.3.1 => 18.3.1

Steps to reproduce the behavior

No response

Expected behavior

No response

@manu-mohan-code manu-mohan-code added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 31, 2025
@manu-mohan-code
Copy link
Author

@melloware Could you please help on this issue

@melloware melloware added Component: Accessibility Issue or pull request is related to WCAG or ARIA and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Accessibility Issue or pull request is related to WCAG or ARIA
Projects
None yet
Development

No branches or pull requests

2 participants