Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[a11y] Search: Search Icon Label Logic Update (carbon-design-system#1…
…3648) * [a11y] Search: Search Icon Label Logic Update With the currently implementation, an accessibility violation occurs when the Search Icon's container doesn't have a role. The current implementation removes the `role` attribute when the `onExpand` property is undefined, but it should also remove the `aria-labelledby`. This update will avoid the accessibility violation: https://www.w3.org/TR/wai-aria-1.1/#roles --- The error can be see in the `@carbon/react` Storybook UI. Visit the [Search component](https://react.carbondesignsystem.com/?path=/story/components-search--default) and click on the 'Accessibility' tab * fix(tests): snapshots updated after Search a11y update --------- Co-authored-by: Francine Lucca <40550942+francinelucca@users.noreply.github.com> Co-authored-by: Alison Joseph <alison.joseph@us.ibm.com> Co-authored-by: Andrea N. Cardona <cardona.n.andrea@gmail.com>
- Loading branch information