[icos] Add delay to menu hover and allow keyboard menu expansion#18
[icos] Add delay to menu hover and allow keyboard menu expansion#18ahd44 wants to merge 3 commits into
Conversation
|
It's nice not to have the menu open when your cursor just crosses the main navigation! |
Yes, definitely -- I had tried doing a fade in/fade out using transitions on |
Added/deployed my first attempt at this to demo.icos-cp.eu. It's not as smooth as Apple's just yet... theirs has a very nice like "sliding appearing" effect on each submenu that I'd like to try (and currently I'm just changing opacity of the subcontent to get a similar kind of feel). But it's a good start, I think. |
|
Oh yes! That is already very good! |
|
As this was done with the old theme, this is no longer relevant. The idea has been re-implemented for the new themre in #26 |
Improve user experience by delaying opening of menu so that briefly hovering over a menu item does not take up the entire screen on small displays.
Increases general delay from 0.1s to 0.4s; adds additional delay for "disappearing" to ensure flickering does not occur, and increases z-index on hover so hovered tab always appears on top.
Also adds rules to allow keyboard focus to expand menu. (Note that for testing, the "admin" interface messes with tab order somehow and the menu navigation links are not focusable; I am not sure why, but it works for non-logged in users just fine.)
The keyboard focus could use some work; right now if you hover over something else with a menu open via keyboard focus, the menu opens "twice", and it can be difficult to close the menu via keyboard only. But it is still preferable for accessibility to allow keyboard focus to open the menu, I think.