In reviewing #2173527: The Menu-Toolbar area should be refactored so that Tray items are nested in the same container as their associated parent Toolbar item. I realized that the :focus behavior isn't applied to the push-up.svg like it is to the push-left.svg.
With the horizontal bar you get both :hover & :focus applied:
.toolbar .toolbar-toggle-orientation [value="vertical"]:hover::before, .toolbar .toolbar-toggle-orientation [value="vertical"]:focus::before {
background-image: url("https://d9tv.ply.st/core/misc/icons/787878/push-left.svg")
}
With the vertical bar you just get the :hover applies:
.toolbar .toolbar-toggle-orientation [value="horizontal"]:hover::before {
url("https://d9tv.ply.st/core/misc/icons/787878/push-up.svg")
}
This is somewhere in the JS for the toolbar, but haven't been able to figure out where yet.
As it is right now, for a keyboard only user, there is no indication that they are on the push-up.svg button.
Comment | File | Size | Author |
---|---|---|---|
#23 | toolbar_s-2546196-23.patch | 555 bytes | bjlewis2 |
#22 | Screen Shot 2015-09-22 at 11.32.40 AM.png | 12.48 KB | bjlewis2 |
#22 | Screen Shot 2015-09-22 at 11.29.22 AM.png | 12.69 KB | bjlewis2 |
#22 | toolbar_s-2546196-22.patch | 494 bytes | bjlewis2 |
#14 | toolbar_s-2546196-14.patch | 2.28 KB | andriyun |
Comments
Comment #2
mgiffordComment #3
Wim LeersI think this is related:
Comment #4
TR CreditAttribution: TR commentedI can confirm that the icon is still in the wrong place as demonstrated in #3, and git bisect shows #2173527: The Menu-Toolbar area should be refactored so that Tray items are nested in the same container as their associated parent Toolbar item. caused the problem. It would be nice to fix this before 8.0.0
Comment #5
TR CreditAttribution: TR commentedNote there is a patch for the icon misalignment in #2563807: Admin menu misaligned toggle icon , but that patch just reverts #2267037: Toolbar tab icons without title are not aligned. I've added both these to the related issues list.
Comment #6
hussainwebIf I understand the problem correctly, the problem is not in JS but in CSS. When cycling through elements with tab, focus was not visible on the push-up icon, but on push-left. The attached patch fixes that. I think the issue summary could use an update for clarity.
Comment #7
neclimdulPatch doesn't affect the location problem documented in #3, just changes the color when icon is focused.
Comment #8
joelpittetComment #9
neclimdulI'm not sure what the markup people want to do hear but without mucking with the markup here is a fix for the positioning as well.
Comment #10
neclimdulactually looking at it further, there will have to be more work on it. This fixes the background but the click area doesn't line up.
Comment #11
andriyun CreditAttribution: andriyun at Skilld commentedComment #12
andriyun CreditAttribution: andriyun at Skilld commented#9 patch with some adjustments and fixed clickable mouse area.
Comment #13
andriyun CreditAttribution: andriyun at Skilld commentedComment #14
andriyun CreditAttribution: andriyun at Skilld commented#12 upgraded patch with some adjustments and better alignment
Steps for review:
Check steps 2-4 for rtl mode. It could be changed on /admin/config/regional/language/edit/en (required Language module).
In rtl-mode it should be displayed like on rtl-screenshot
Comment #15
andypostLooks actually ready
Comment #16
neclimdulAwesome, thanks Andy. I'd been hesitating RTBCing in case this was conflicting with changes from the other issue but if someone else from that issue is good with it +1 especially since the path on that seems unclear and its NW.
Comment #17
Wim LeersThis also makes the CSS quite a bit simpler, so yay!
Comment #18
webchickOH YES! This has been driving me absolutely nuts.
Committed and pushed to 8.0.x. Thanks!!
Comment #19
andypostlooks not pushed?!
Comment #20
bjlewis2 CreditAttribution: bjlewis2 at Modules Unraveled commentedNot seeing it either...
Comment #22
bjlewis2 CreditAttribution: bjlewis2 at Modules Unraveled commentedLooks good now. One small followup is that when you scale down (for me, it happened when I hit 50%) the toggle isn't centered vertically anymore. Not sure what screens/users this might affect, but I fixed it with three lines of css.
position: relative;
top: 50%;
transform: translateY(-50%);
I've attached a patch. If it's not worthy of a commit, then no worries, if so, then yay! :)
Here are screenshots showing before and after:
Before
After
Comment #23
bjlewis2 CreditAttribution: bjlewis2 at Modules Unraveled commentedAh, that broke the vertical toolbar. Need to be more specific and only target the horizontal one. This patch should fix that.
Comment #24
neclimdulPutting patches on a fixed issue isn't going to do much. you'll have to change the status or probably better in this case open a follow up and explain the issue.
Comment #25
bjlewis2 CreditAttribution: bjlewis2 at Modules Unraveled commentedGood Call.
Created new issue for the followup: #2572833: Toolbar's orientation-toggling arrow not centered when zoomed out