WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Trapping focus in an alert

for

From: Meacham, Steve - FSA, Kansas City, MO
Date: Apr 5, 2018 12:13PM


Assuming this is a web page, a modal dialog containing such an alert should not only trap keyboard focus, but make the controls underneath inert and visually obscured or dimmed, and do likewise with ARIA via aria-hidden or aria-modal.

I could imagine (not recommend) this being done non-modal. In that case, no, do not trap the focus.