ubik23 / charactercreator

A frontend interface for creating characters in SVG.
Other
306 stars 78 forks source link

Site appearance 'breaks' when navigating with tab key. #126

Open ubik23 opened 4 years ago

ubik23 commented 4 years ago

This is a precursor to being able to navigate the site using only the keyboard. This issue should be limited to disabling the focus of the menus when they are hidden, so the user can only select the active menus.

ubik23 commented 4 years ago

Check this: https://stackoverflow.com/questions/9152096/make-an-html-element-non-focusable

Tbenito commented 4 years ago

<aside id="sidebar" tabindex="-1" class="sidebar sidebar-right"> doesn't work !

Tbenito commented 4 years ago

Apparently tabindex is not the solution.

millette commented 4 years ago

I haven't verified, but I don't think an "aside" is focusable (a "p" is also not focusable) thus the tabindex will have no effect on those. tabindex can be used on "a", "input", and other elements that take user input.