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

Remove aria-hidden attrbute from focusable elements #4540

Open
mbechev opened this issue Feb 11, 2025 · 0 comments
Open

Remove aria-hidden attrbute from focusable elements #4540

mbechev opened this issue Feb 11, 2025 · 0 comments

Comments

@mbechev
Copy link
Contributor

mbechev commented Feb 11, 2025

Description

The aria-hidden attribute is set on focusable elements like buttons, which are primarily used as a decorative element for some components (such as SplitButton).

In some versions of Chrome, an error message is thrown in the console.

Steps To Reproduce

  1. Open the SplitButton demo in new window - https://www.telerik.com/kendo-angular-ui/components/buttons/splitbutton
  2. Open the button options and check the console.

Screenshots or video

Image

Blocked aria-hidden on an element because its descendant retained focus. The focus must not be hidden from assistive technology users. Avoid using aria-hidden on a focused element or its ancestor. Consider using the inert attribute instead, which will also prevent focus. For more details, see the aria-hidden section of the WAI-ARIA specification at https://w3c.github.io/aria/#aria-hidden.
Element with focus: button
Ancestor with aria-hidden:

Actual Behavior

Error is thrown when the browser detects a focusable element with an aria-hidden attribute.

Expected Behavior

The aria-hidden attributes must be removed from all focusable elements. Internally also from ToggleButtonTabStopDirective

Browser

Chrome

Browser version

latest

OS type

MacOS

OS version

No response

Last working version of the Kendo UI for Angular package (if regression).

No response

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

No branches or pull requests

1 participant