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

bug: ion-checkbox svg visible to assistive technology #30231

Open
3 tasks done
RasmusKjeldgaard opened this issue Mar 5, 2025 · 1 comment
Open
3 tasks done

bug: ion-checkbox svg visible to assistive technology #30231

RasmusKjeldgaard opened this issue Mar 5, 2025 · 1 comment
Labels

Comments

@RasmusKjeldgaard
Copy link

Prerequisites

Ionic Framework Version

v8.x

Current Behavior

ion-checkbox has an svg checkbox icon that currently appears in the accessibility tree as having role 'image', and can be targeted by screen readers, but with no other contextual information about the svgs, making it difficult to understand.

Using VoiceOver, I get the following experience when stepping into a checkbox and past the label:

Image

Scanning the page with analysis tools such as axe devTools will also result in "SVG element missing accessible name" types of errors.

Expected Behavior

I think the svg should be hidden from AT with aria-hidden="true" or similar, so only the entire checkbox control and any label inside is reachable.

Steps to Reproduce

  1. Navigate to a page with an ion-checkbox, e.g. https://stackblitz.com/edit/r1exi21m
  2. Browse the page with a screen-reader, and step into the checkbox control.
  3. See that svg inside ion-checkbox is reachable

Code Reproduction URL

https://stackblitz.com/edit/r1exi21m

Ionic Info

Reproduced in stackblitz.

Additional Information

No response

@RasmusKjeldgaard
Copy link
Author

If this does turn out to be a bug, let me know if it makes sense to handle as a contribution, and I'll look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant