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
The cuntextual trigger icon (pencil) is ruggered (when displayed in Bartik) especially on a non-white background.
Also the icons are too close to the right (only 2px distance).
Before:
After:
Before:
After:
Proposed resolution
Set correct border radius, remove border. Set a little bigger right distance.
Remaining tasks
Task | Novice task? | Contributor instructions | Complete? |
---|---|---|---|
Manually test the patch | Novice | Instructions | |
Embed before and after screenshots in the issue summary | Novice | Instructions | Complete |
User interface changes
Smoother trigger icon display.
API changes
None.
Comment | File | Size | Author |
---|---|---|---|
#22 | bartik-header-footer-trigger-after.png | 78.81 KB | thamas |
#22 | bartik-header-footer-trigger-tkoleary.png | 79.88 KB | thamas |
#22 | bartik-header-footer-trigger-original.png | 82.58 KB | thamas |
#22 | interdiff.txt | 2.38 KB | thamas |
#22 | improve-trigger-icon-display-2352857-22.patch | 2.84 KB | thamas |
Comments
Comment #1
thamasComment #2
thamasHere is the patch. :)
Comment #3
thamasComment #4
marabak CreditAttribution: marabak commentedI've tested your patch on a mac :
on chrome 38.0.2125.101
on safari 7.0.6 (9537.78.2)
on firefox 32.0.3
every think works like charm :)
maybe someone should test too on a PC.
Comment #5
thamasThanks marabak! RTBC? :)
Comment #6
marabak CreditAttribution: marabak commentedok, i read your patch - its only about changing left/right and border-radius css attributes - i think it will work on PC too :)
you've shown me how to review a patch at Drupalcon Amsterdam, so i must be very careful since my mentor is watching :D
Comment #7
thamas:) Thank you! I'm proud!
Comment #9
zaporylieIt looks ok. Only changes in CSS - shouldn't be a problem for testbot.
Comment #11
thamasYup. First time it passed the test… Should be OK.
Comment #12
webchickCommitted and pushed to 8.0.x. Thanks!
Comment #14
thamas:)
Comment #15
Wim LeersUnfortunately this has caused a regression, which is even visible in the issue summary. Look at the top left part of the contextual links triggers of the original (https://www.drupal.org/files/issues/d8-trigger-icon.png) versus the new (https://www.drupal.org/files/issues/d8-trigger-icon-after.png). You'll see that it's almost impossible to discern. This looks plain broken.
This is probably because the border was removed.
Comment #16
thamasWim I disagree. The icon absolutely recognizable, usable and because of the box shadow the full circle is visible. I do not think we need a stronger border. It is smooth.
And the border makes the display (more) ruggered (that is why I removed it).
Comment #17
webchickSince tkoleary designed this, I'll ping him to take a look. For now though I've rolled the patch back because I'm concerned we may have introduced an accessibility regression here with the lack of contrast on the white background.
Comment #19
thamasOK, let's wait tkoleary's opinion. But I'm sure it is not an accessibility regression. The pencil icon totally accessible, it did not change and the circle around it is still visible just not so ringing.
(If the decision would be that it should have more contrast I recommend not to use box-shadow and border together. Chose one or the other.)
Comment #20
tkoleary CreditAttribution: tkoleary commented@thamas
I see what you mean about the shadow and I agree, but I have a different take on it. After living with this for some time since I initially designed it I have a few thoughts on the design as well as the current implementation.
Webchick is correct that the change in your patch is an accessibility regression but I think we can be both more modern and more accessible if we simply remove the shado entirely and darken the border like so:
I think the other issues may be small enough to handle in this patch as well.
1 we can mitigate the excessive noise of too many buttons by reducing the size of them by 2px:
On hover we keep the dark grey icon:
But on focus use the blue icon and remove the outline:
With the above the changes
The normal state should change from this:
To this:
The hover state changes from this:
To this:
The Focussed state changes from this:
To this:
And the Pressed state changes from this:
To this:
Comment #21
thamas@tkoleary thanks for your support. So we won't use box-shadow and border together.
Here is the new patch with all the changes you recommended.
(It makes the changes as it can be seen tkoleary's screenshots, should we add new screenshots?)
Comment #22
thamasHere is an other patch which makes the changes from tkoleary but removes the trigger icon border in the header and footer of Bartik. (The interdiff.txt shows the difference to patch-2. Patch-21 and patch-22 only differ in the two added lines in Bartik's style.css).
(I recommend to open the attached images in full size to see the difference.)
Here is the current state:
This is how trigger icons are displayed after the changes from tkoleary (patch-21):
And after applying this patch-22 (smoother icons in header and footer!):
Comment #23
zaporylieSince this issue touches core CSS, I've checked Stark theme for regression. Everything works good.
Comment #24
tkoleary CreditAttribution: tkoleary commentedAwesome. Nice work.
From a design and usabiltiy perspective I think it's RTBC.
@wim-leers code review?
Comment #25
Wim LeersOnly one extremely silly nitpick before I can re-RTBC this:
We always put the statements on a new line.
Comment #26
thamasNot always :)
https://www.drupal.org/node/1887862#format
But it is just on single declaration wit two selector line, so it can be changed… What could be more important is to add a comment about the code. So if these are really needed I can reroll the patch a little bit later.
Comment #27
Wim LeersAha! :) I couldn't find any such example in Bartik's
style.css
, so I assumed that was the rule.RTBC then — thanks!
Comment #28
webchickActually looked a bit weird to me too, so I just changed that on commit. ;)
Committed and pushed to 8.0.x. Thanks!
Comment #30
thamasI'm glad that it is fixed!
Comment #31
StuartJNCC CreditAttribution: StuartJNCC commentedUpdated to latest HEAD this morning (Wed 2014-Oct-15) - so this patch is in - and Quick Edit function has entirely vanished. No pencil icon in menu bar, no trigger icons.
Of course, I have no evidence that this patch is the one responsible! But it is the only one I can see that has been committed since Monday (when it last worked) that touches QuickEdit.
Comment #32
webchickHm. Quickedit is working for me in the latest 8.0.x branch (at least in Chrome). Can you provide more info on what's broken for you? Browser? Errors in JS console? etc.
Comment #33
StuartJNCC CreditAttribution: StuartJNCC commentedI did a re-install today with the latest HEAD and that fixed the problem. Pencil icons are back and Quickedit works.
Again, no idea what changed!
Comment #34
Wim LeersI bet it was the browser cache :)