Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
During the usability study, some participants did not realise the 'manage' tool tab was open by default. The effect is very subtle. Gradients are also very rare in the admin interface, so the new styling should follow the Seven style guide
Proposed resolution
Design experimentation needed
Remaining tasks
Design
Patch
Test
User interface changes
Toolbar tab active state
API changes
None.
Data model changes
None.
Comment | File | Size | Author |
---|---|---|---|
#5 | invert_active_toolbar-2523062-5.patch | 6.45 KB | mErilainen |
#4 | contextual.png | 4.34 KB | mErilainen |
#4 | user.png | 19.96 KB | mErilainen |
#4 | shortcuts.png | 20.16 KB | mErilainen |
#4 | manage.png | 19.9 KB | mErilainen |
Comments
Comment #1
amateescu CreditAttribution: amateescu commentedMoving to the right component :)
Comment #2
mErilainen CreditAttribution: mErilainen at Wunder commentedSimply making the background gradient lighter helps a lot.
Comment #3
LewisNymanI think that we are going to run into text color contrast issues with this solution. If we leave the text white then it limits how much contrast we can have between the active state and the regular state.
Other options would be to invert the colors or use a different highlight color:
I prefer the inverted colors as it creates a relationship between the active tab and the toolbar tray below it.
Comment #4
mErilainen CreditAttribution: mErilainen at Wunder commentedI like the inverted colors approach also. It will make the patch a lot more complicated, because I had to add new inverted svg icons not only for toolbar module, but also shortcut, user and contextual modules. Attached screenshots of the changes.
Comment #5
mErilainen CreditAttribution: mErilainen at Wunder commentedWhoops, the active edit link background changed to blue after clicking anywhere, fixed that.
Comment #6
LewisNymanI think this looks pretty good. I noticed that the toolbar background color is not actually pure black
#000
. It's#0f0f0f
Two other comments
Where possible, we use the three character color values. https://www.drupal.org/node/1887862#properties
Comment #7
Bojhan CreditAttribution: Bojhan commentedI am wondering if this is actually going to solve the issue. Isn't it more that they don't really look like tabs but are? We don't have issues like this with the tabs on admin pages.
Comment #8
mErilainen CreditAttribution: mErilainen at Wunder commentedEven if the background isn't "pure black", I think the font can be exactly pure black. Does it make any sense to create a svg icon for fifty shades of gray, bloating the curiously named "misc" folder even more?
When it comes to the three character values vs. six char values, I was trying to follow the convention in the same file. There are no three char values there.
Are we trying to get Drupal8 out someday, or fine tune it until perfection?
Changing back to Needs review, because I disagree.
Comment #9
LewisNymanMy first thought went to contrast because the eye tracking seemed to completely ignore the area.
Comment #10
LewisNymanWe have agreed standards for this, my opinion or your opinion aren't worth much compared to an agreed consensus. Setting back to needs work.
Comment #11
mgiffordJust following up on #9 - @Bojhan if contrast isn't enough, what else should we throw at this?
Comment #15
tkoleary CreditAttribution: tkoleary at Acquia commentedThis is addressed by settings tray module.