Focus trapping - Focus looping
In certain occasions it's needed to trap focus inside a specific element, meaning that pressing TAB or moving the screen reader cursor will not exit the element, but cycle only inside of it.
Think about modals, for example: they float over your page,...
anothercodingguy.hashnode.dev4 min read