-
Notifications
You must be signed in to change notification settings - Fork 77
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
[Chip] Ensure the label
prop is provided to assistive technologies
#8696
Comments
) **Related Issue:** #8696 ## Summary - Make the `label` property required to ensure it is provided to a11y assistive technologies. - Make the `value` property optional in favor of `label`. BREAKING CHANGE: The `label` property is now required and `value` is optional.
Installed and assigned for verification. |
Reopening for verification |
Additional effort is needed to ensure the
Update: this looks to be a result of the "undefined" role. calcite-design-system/packages/calcite-components/src/components/chip/chip.tsx Lines 350 to 357 in 0362b4e
cc @benelan |
**Related Issue:** #8696 ## Summary Provides context to the component's `label` property for JAWS and NVDA users using the [`"img"` role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/img_role), conveying content is delivered in a visual manner and should be accompanied with the required `label` property.
Installed and assigned for verification. |
Verified with JAWS and NVDA in |
Check existing issues
Summary
Chip's
label
property should be provided over thevalue
or slotted text.Actual Behavior
The component's
label
property provides context to AT, wherevalue
is not provided to assistive technologies or when a parentchip-group
is present.Expected Behavior
As part of an upcoming breaking change release, we should consider making
label
required from our discussions in #6075 (comment). This way the internals stay the same and label is read to assistive technologies, and required. Value should just be optionally used for getting value in selection mode.If enforcing a required
label
, thevalue
can be optional and not read back to assistive technologies. This seems to be a similar pattern in other components, such asalert
and the parentchip-group
:calcite-design-system/packages/calcite-components/src/components/alert/alert.tsx
Lines 111 to 112 in 107792d
calcite-design-system/packages/calcite-components/src/components/chip-group/chip-group.tsx
Lines 46 to 47 in 107792d
cc @macandcheese
Reproduction Sample
https://codepen.io/geospatialem/pen/poYKVYv
Reproduction Steps
chip-group
works as-expectedlabel
's are not provided to ATReproduction Version
2.4.0
Working W3C Example/Tutorial
No response
Relevant Info
Regression?
No response
Priority impact
p4 - not time sensitive
Calcite package
Esri team
Calcite (dev)
The text was updated successfully, but these errors were encountered: