You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using an ion-range component that contains an aria-label or aria-labelledby property, it is not rendered as part of the component. The range component does not contain properties for either of those values.
When using an ion-range in tandem with an accessibility checking tool, such as @axe-core/react, the following axe issue manifests:
aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
Element has no title attribute
Expected behavior:
Either aria-label or aria-labelledby should be rendered as part of the component.
Steps to reproduce:
Pull the reproduction linked in the section below.
Run npm install then npm start
Observe the issue within Chrome DevTools' console
Note: It may take a few refreshes for the issue to print to the console. An alternative way to check is to inspect the output HTML of the ion-range component and observe the missing aria-labelledby property.
Thanks for the issue. This has been resolved via #23338, and a fix will be available in an upcoming release of Ionic Framework.
ion-range will now grab the value of any ion-label associated with it inside of an ion-item. Alternatively, you can set aria-label directly on ion-range, and it will be inherited to the inner knob elements.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Bug Report
Ionic version:
[ ] 4.x
[x] 5.x
Current behavior:
When using an ion-range component that contains an
aria-label
oraria-labelledby
property, it is not rendered as part of the component. The range component does not contain properties for either of those values.When using an ion-range in tandem with an accessibility checking tool, such as
@axe-core/react
, the following axe issue manifests:Expected behavior:
Either
aria-label
oraria-labelledby
should be rendered as part of the component.Steps to reproduce:
npm install
thennpm start
Note: It may take a few refreshes for the issue to print to the console. An alternative way to check is to inspect the output HTML of the ion-range component and observe the missing
aria-labelledby
property.Related code:
Reproduction Case: https://github.com/eric-horodyski/fw-react-a11y-range
Other information:
Ionic info:
The text was updated successfully, but these errors were encountered: