reactjs/react-modal

Replace focus trap with `inert`

Open

#1.011 aberto em 29 de mar. de 2023

Ver no GitHub
 (1 comment) (4 reactions) (0 assignees)JavaScript (828 forks)batch import
accessibilitybrowser apicombining librariesdependenciesdiscussioneasyfeaturegood first issue

Métricas do repositório

Stars
 (7.294 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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.

Guia do colaborador