-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Change tabs appearance #9512
Change tabs appearance #9512
Conversation
Is look and badge ok on smartphone too ? |
Good game ! I forgot the mobile testing part. Now it's fixed ! |
htdocs/theme/eldy/style.css.php
Outdated
} | ||
a.tab:hover | ||
{ | ||
/* | ||
background: rgba(<?php echo $colorbacktabcard1; ?>, 0.5) url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/nav-overlay3.png',1); ?>) 50% 0 repeat-x; | ||
color: #<?php echo $colortextbacktab; ?>; | ||
*/ | ||
text-decoration: underline; | ||
text-decoration: none; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an accessibility error! Please keep in mind accessibility rules.
See https://www.sitepoint.com/15-rules-making-accessible-links/ (chapter 11) and https://www.w3.org/TR/WCAG20-TECHS/F73.html
This is represented by top border of the tab. I'm agree with this type of recommandations for links in text paragraph, but we are not on a text paragraph and it's not the link's normal state. The hover state change his border top line color saturation, hue and change cursor to pointer. If hover state style need more visibility for accessibility, I suggest changing hover state by the same of active state (remove bottom border and change top border to a 2px colored style. But actually I don't think it's necessary, don't you ? |
You're right we are not into textual context. This point related to Dolibarr interface generally… For tabs IMHO we need more contrast between active tabs and others (don't forget In any case, we applaud you for this courageous work on Dolibarr theming ;) |
Added : more hover visual effect |
Having borders on each tab gives a very loaded screen. |
yeah i see. |
1 - Default
2 - Hover
3 - Active
4 - Improve badge visibility