Skip to content

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
@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