reactjs/react-modal

Replace focus trap with `inert`

Open

#1 011 ouverte le 29 mars 2023

Voir sur GitHub
 (1 commentaire) (4 réactions) (0 assignés)JavaScript (828 forks)batch import
accessibilitybrowser apicombining librariesdependenciesdiscussioneasyfeaturegood first issue

Métriques du dépôt

Stars
 (7 294 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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.

Guide contributeur