Problem/Motivation
The fgColor is not being changed in different environments. This seems to be because of a change in the HTML structure on the toolbar. Not sure if it's just us or not.
Steps to reproduce
Go to /admin/config/development/environment-indicator/current
Change the foreground color to anything.
Save
Clear Cache
Notice that your foreground color (text color) is never updated.
Proposed resolution
Merge this merge request to fix this.
Remaining tasks
Test via tugboat or other method.
Determine if any blocking issues with merge request.
Merge
User interface changes
You can now use the foreground color setting to set the color of the text in the toolbar.
API changes
N/A
Data model changes
N/A
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | environment_indicator-fix-workspace-toolbar-color.patch | 1.48 KB | dragos-dumi |
| #2 | 3463388-envindicator-fgcolor-1.patch | 1.71 KB | balagan |
| 3463201-fix-for-change-in-class-for-toolbar.patch | 1.07 KB | edmund.dunn |
Issue fork environment_indicator-3463388
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
balagan commentedWith D10.3.1 this is what works for me.
Comment #3
thomwilhelm commentedHaving the same issue after going from 4.0.18 to 4.0.19 whilst on Drupal 10.2, seems like the change in this issue caused the regression for me:
https://www.drupal.org/project/environment_indicator/issues/3456599
Comment #4
loopy1492 commentedOnlu the active button was really affected for us. I applied the patch from #2 and it fixed the problem for us:
core: 10.3.1
environment_indicator: 4.0.19
Comment #7
trackleft2Setting priority to major since this is one of the key settings in this module.
Comment #10
isholgueras commentedComment #11
isholgueras commentedComment #12
dragos-dumi commentedAfter this change, the workspace indicator colors in the toolbar gets overwritten with the bg and fg color and might confuse users as you get for example green color on any Workspace. Attached a patch for this, if someone is lookig for a quick fix. Not sure if needs to be a sepparate issue or even if it should be considered in this module.
Comment #13
trackleft2@dragos-dumi Interesting, thanks for the report. I'll make an issue for this module to create an automated test for how this module interacts with workspaces module.
Comment #14
leksat commentedThis new code now changes the background color of our custom toolbar elements. Now sure what to do with that 🤔
Comment #15
leksat commentedAlso, the jQuery code does not use the context for the element selection. So every time it is applied to the whole page, no matter of the passed context.
Comment #16
danflanagan8RE: #12, my clients are pointing out the same thing. I think it is the responsibility of this module to not override the core workspace styling. I created an issue and put in an MR.
#3532440: Environment indicator overrides workspace toolbar style