reactjs/react-modal

Replace focus trap with `inert`

开放

#1,011 创建于 2023年3月29日

 (1 条评论) (4 个反应) (0 位负责人)JavaScript (828 个派生)batch import
accessibilitybrowser apicombining librariesdependenciesdiscussioneasyfeaturegood first issue

仓库指标

星标
 (7,294 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Now that browsers have good support for inert, could we consider replacing the custom focus trap logic with this?

Alternatively, we could use the dialog element so we get this behaviour for free.

贡献者指南