Closed (fixed)
Project:
Environment Indicator
Version:
4.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Sep 2023 at 09:43 UTC
Updated:
6 Oct 2023 at 16:06 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
thomas.frobieterFor any reasons, the 3px default border is overridden by inline style.
So if this is configurable by the user, this issue is not fixable without moving this value into a CSS variable.
Edit: Okay, the 6px inline style is set by environment_indicator.js. It doesn't make any sense to me, that these values differ. Both should be 3px or 6px.
Comment #4
thomas.frobieterPlease review:
Comment #5
anybodyWhao this is really cool and was hard to find, I was wondering, why the margins were different! Nice catch!
Using a CSS variable totally makes sense here.
RTBC from my side, I can't see anything that could be done better, but let's hear what the maintainers think.
Comment #6
anybodyJust one comment left for maintainer discussion, otherwise RTBC.
Comment #7
thomas.frobieterAdded a fallback value!
Comment #8
grevil commentedLGTM!
Comment #9
thomas.frobieterComment #10
thomas.frobieterComment #11
isholgueras commentedHi!
I've been reviewing this MR and I can't reproduce or identify the issue under Drupal 10.1.x, environment_indicator 8.x-4.x, gin 8.x-3.0-rc6 and gin_toolbar 8.x-1.0-rc3.
I'm changing between environment indicator
4.xbranch and3388814-fix-gin-adminbranch, after clearing the cache, and I can't find any difference.For Gin settings, I've tested Sidebar, Vertical Toolbar, Horizontal, Modern Toolbar and Legacy and also the Secondary Toolbar in the Frontend.
For the Environment indicator, I've tested the Toolbar integration enabled and disabled.
Can someone post some screenshots or describe a bit more the issue and how to reproduce it?
Another issue that I can find in the MR is that in this line: (https://git.drupalcode.org/project/environment_indicator/-/merge_request...), there is the use of the CSS variable
--border-width, but this variable is not defined.Thanks!
Comment #12
thomas.frobieterHi @isholgueras, no problem, only the Modern Toolbar and probably the Horizontal Toolbar are affected by this issue, because the vertical toolbar doesn't have the second bar next to it.
Heres a screenshot:

The Gin configuration looks like this (Gin Toolbar Module enabled):

Please see: https://git.drupalcode.org/project/environment_indicator/-/merge_requests/30/diffs#e05f17ede7c46d4798c5f60472b1cfc257aeee3a_1_1
Comment #13
thomas.frobieterOh sorry, its about --border-width in the js file, not about --enviroment-indicator-border-width. I'll check this.
Comment #14
thomas.frobieterGood hint, fixed. I missed that when I replaced the original variable name, thx!
Comment #16
isholgueras commentedThanks for explaining it. Yes, now I can reproduce the issue and this patch fixes the issue.
Thanks!
Comment #17
isholgueras commented