restrict-focus (npm): A small library to restrict focus/tabbing to only within a specified element. Shadow DOM aware, so it works with web components.
Keywords: focus|tab|tabbing|shadowDOM|web components