-
-
Notifications
You must be signed in to change notification settings - Fork 558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sidebar and nav-tab-custom: additional CSS for focus state #1955
Conversation
Pi-hole web v5.7
Pi-hole Web 5.8
Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
Thanks for the nice screenshots. Therefore hover and focus can/should be the same I think - or rephrasing: I don't see a need to distinguish them. I like the border esp. on the left side menu and would add it to all of the themes. P.S. Add it to the new theme as well ;-) |
Focus and Hover styles can be different or not. It's a design choice.
What do you mean?
The new theme already has focus effects for the sidebar menu. |
Just to add to our conversation... From the usability point of view we have many states:
The focus state will happen using the mouse too (interactive elements only: links, buttons, input elements, etc.):
We don't normally need focus state, but some people with disabilities cannot use the mouse and need a visual cue to know where the focus is. In the sidebar, using the mouse, you usually don't see the focus because you click and the focus disappears immediately when the new page loads, but using the keyboard you can navigate using TAB and select/fire the desired action using Return or ENTER. |
I think it would benefit from one. But askIn the sidebar, using the mouse, you usually don't see the focus because you click and the focus disappears immediately when the new page loads. I noticed this as well: it also happens if you click on the sidebar and keep the button pressed. It's most obvious on the light theme as (so far) it has different colors for hovering and focussing. ing @DL6ER who created the theme initially.
That's why I would add a "border for the element" to make the focus even clearer. |
Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
I changed the CSS for the sidebar. Each theme will change the text color, background-color and left-border (with the same color on both states) for |
This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there: https://discourse.pi-hole.net/t/pi-hole-ftl-v5-12-web-v5-9-and-core-v5-7-released/51795/1 |
Signed-off-by: rdwebdesign github@rdwebdesign.com.br
By submitting this pull request, I confirm the following:
git rebase
)git commit --signoff
)What does this PR aim to accomplish?:
Fixes #1843, improving accessibility for sidebar and nav-tabs.
How does this PR accomplish the above?:
Added CSS for
:focus
state, into every theme: default-light.css, default-dark.css, and default-darker.css.Each theme has been modified accordingly.
What documentation changes (if any) are needed to support this PR?:
none