Skip to content

Attribute aria-hidden of div should not be put in div #4314

@mahui-cn

Description

@mahui-cn

short description of the bug / issue, provide more detail below.

Chrome tell the errors as below:
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: div
Ancestor with aria-hidden: <div class=​"text-center mx-2 slick-slide" data-slick-index=​"5" aria-hidden=​"true" tabindex=​"-1">​…​​

It looks like the attribute aria-hidden of div should not be put here as the element div sometimes could be focused by user via mouse or keyboard which violate the latest rules of w3c specifications.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions