Followup issue to #2546196: Toolbar's orientation-toggling arrows broken by #2173527, which fixed a vertical positioning issue, but not when the browser is zoomed out.
One small followup is that when you zoom out (using the browser's zoom function - for me, it happened when I hit 50%) the toggle isn't centered vertically anymore. Not sure what screens/users this might affect, but it can be fixed with the following css.
.toolbar .toolbar-tray-horizontal .toolbar-toggle-orientation > .toolbar-lining {
position: relative;
top: 50%;
transform: translateY(-50%);
-ms-transform: translateY(-50%);
-webkit-transform: translateY(-50%);
}
Here are screenshots showing before and after:
Without Patch
With Patch
Comment | File | Size | Author |
---|---|---|---|
#19 | firefox.gif | 45.17 KB | emma.maria |
#19 | chrome.gif | 36.91 KB | emma.maria |
#18 | menu-move-icon.mov | 4.95 MB | Manjit.Singh |
#14 | toolbar-toggle-2572833-14.patch | 754 bytes | bjlewis2 |
#14 | Arrow2.gif | 87.08 KB | bjlewis2 |
Comments
Comment #2
bjlewis2 CreditAttribution: bjlewis2 at Modules Unraveled commentedHere's the patch. If it's not worthy of a commit, then no worries, if so, then yay! :)
Comment #3
hussainwebComment #4
andriyun CreditAttribution: andriyun at Skilld commentedPlease add vendor prefixes for this property
Comment #5
Wim LeersComment #6
lanchez CreditAttribution: lanchez at Druid commentedAdded vendor prefixes.
Comment #7
shwetaneelsharma CreditAttribution: shwetaneelsharma at Axelerant commentedI could reproduce the original issue on Chrome when I zoomed out to 33%. Patch "toolbar_s-2572833-6.patch" resolves the central align issue.
Patch "toolbar_s-2572833-6.patch" passes testing. Attaching screenshot after applying the patch on chrome.
Comment #8
meenakshi.r CreditAttribution: meenakshi.r as a volunteer and at Srijan | A Material+ Company commentedIssue is resolved when browser is zoomed in to 50 % after applying patch.
I have attached the screenshots when browser is zoomed in to 50 %
before applying patch .
after applying patch.
Also,I am not able to reproduce the issue when browser is zoomed in to 33%.
after applying patch
Comment #10
Wim LeersTestbot problems.
Comment #11
xjmComment #12
xjmCould we also get a theme or CSS maintainer to confirm the CSS for this fix? (Since the fix has a good bit of specificity.) Thanks all for the issue report, patch, and manual testing.
Comment #13
nod_Can't reproduce, must have been fixed somewhere else.
Comment #14
bjlewis2 CreditAttribution: bjlewis2 at Modules Unraveled commentedI'm still seeing this with 8.0.4-dev.
However, the css is now being read from the "stable" theme, instead of the toolbar module. So, this is an updated patch to change the stable theme instead.
Without the patch
With the patch
Comment #15
bjlewis2 CreditAttribution: bjlewis2 at Modules Unraveled commentedUpdated issue summary
Comment #17
emma.mariaI am available to give a final review as a theme maintainer. Assigning to myself so I can track this issue and review ASAP.
Comment #18
Manjit.SinghToggling orientation is working as expected. Please check screencast.
Comment #19
emma.mariaI have a few concerns...
This fix is for the layout of the icon so it should be in the toolbar.icons.theme.css file?
The toggle layout code already sits within that file starting at line 257.
I also tried out a simple fix on the icon markup directly instead and this code seemed to fix the horizontal icon on small zoom issue...
Are we allowed to add fixes to the Stable theme at this point? This one does seems to be non-disruptive.
Should this fix also go into the core module CSS as well? We have theme icon styling in the core module CSS also.
Passing this to @cottser to answer the Stable and the "which file?" questions...
Comment #20
star-szrAs a rule we don't touch Stable or Classy. This one seems justifiable but it's a bit of a slippery slope in my opinion and hard to tell what we might be breaking even if it seems safe.
What we had in mind when creating Stable was that the kind of bug fixes we would accept would be things that are obviously broken/wrong like malformed markup or something that is functionally broken. Below are some example issues that IMO made acceptable yet somewhat functional changes to Classy or Stable (funny they're mostly about progress indicators):
#2642362: Animation of throbber-active.gif image is broken
#2662778: Ajax progress is rendered via JavaScript theme function; does not include progress library
#2643636: dialog.css: ajax-progress-throbber URL is incorrect
#2638410: Views overview page doesn't filter on tags (this one would have gotten a closer look if it wasn't admin UI and particularly Views UI which is a beast to theme anyway)
Regardless of whether we fix it in Stable, yes we should definitely adjust the core module CSS. We could also consider fixing it in Seven and Bartik if we think it's worth it. Thanks!
Comment #27
nod_Don't know when or how but it's fixed in 9.1.x