For more information visit:
While you can make an element hidden to screen readers with aria-hidden=”true”, that does not change the focus behavior for that element.
For offscreen interactive content, you will often need to combine aria-hidden=”true” and tabindex=”-1” to make sure it’s truly removed from the keyboard flow. The proposed inert attribute aims to make this easier by combining the behavior of both attributes.