reactjs/react-modal

Replace focus trap with `inert`

Open

#1.011 geöffnet am 29. März 2023

Auf GitHub ansehen
 (1 Kommentar) (4 Reaktionen) (0 zugewiesene Personen)JavaScript (7.294 Stars) (828 Forks)batch import
accessibilitybrowser apicombining librariesdependenciesdiscussioneasyfeaturegood first issue

Beschreibung

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.

Contributor Guide