reactjs/react-modal

Replace focus trap with `inert`

Open

#1011 aperta il 29 mar 2023

Vedi su GitHub
 (1 commento) (4 reazioni) (0 assegnatari)JavaScript (828 fork)batch import
accessibilitybrowser apicombining librariesdependenciesdiscussioneasyfeaturegood first issue

Metriche repository

Star
 (7294 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor