Skip to content

fix: Avoid using aria-hidden on a focused element #449

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

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

afc163
Copy link
Member

@afc163 afc163 commented Aug 1, 2024

close ant-design/ant-design#50170

Blocked aria-hidden on a <div> element because the element that just received 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. <div tabindex=​"0" aria-hidden=​"true" style=​"width:​ 0px;​ height:​ 0px;​ overflow:​ hidden;​ outline:​ none;​">​</div>

看了下 MUI 也没有加 aria-hidden。​

截屏2024-08-01 23 23 25

Copy link

vercel bot commented Aug 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dialog ❌ Failed (Inspect) Aug 1, 2024 3:37pm

@afc163 afc163 force-pushed the fix/remove-aria-hidden branch from 99e2d02 to 62e39ee Compare August 1, 2024 15:33
@afc163 afc163 merged commit df21b0e into 9.0.x Aug 1, 2024
6 of 7 checks passed
@afc163 afc163 deleted the fix/remove-aria-hidden branch August 1, 2024 15:38
@pzq82
Copy link

pzq82 commented Aug 9, 2024

vue版本的模态框也会有同样的问题能,修复下吗

@yoyo837
Copy link
Member

yoyo837 commented Aug 9, 2024

vue版本的模态框也会有同样的问题能,修复下吗

Vue版本由社区维护,请到有关仓库反馈。

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

Successfully merging this pull request may close these issues.

3 participants