Slide 16
Slide 16 text
Actually, with a portal, you still need to do the work of keeping
focus locked-in, but it's much easier with a portal because the
modal content is rendered next to the application root.
So, simply setting display to none on the application root
would prevent focus from going into the rest of the
application. You can further enhance this by managing the tab
focus too.
Improving
accessibility in
custom widgets with
React portal