Problem/Motivation
After updating a site to Drupal 10.3, the active tab on our production environment has turned white-on-white. On dev, where the text colour is black, the active tab text *is* readable as black on white. The other tabs remain the configured colour for their environment.
This seems to be courtesy of .toolbar .toolbar-bar .toolbar-tab > .toolbar-item.is-active { in toolbar.theme.css in core.
Steps to reproduce
Configure colours for the environment on Drupal 10.2. See the active tab background be the configured colour. Update to Drupal 10.3.0. See the active tab background is now white.
Proposed resolution
Add an override to the css so that the active tab goes back to the colour that was configured in env indicator.
Remaining tasks
Pretty much all the work.
User interface changes
Ideally none.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 3456599-6.patch | 806 bytes | dagmar |
| #3 | 3456599.patch | 835 bytes | amit.mall |
Comments
Comment #2
cafuego commentedComment #3
amit.mall commented@cafuego, overding color will not solve the issue in all cases, since we have made that section configrable from backend. So it's better not to change color of active tab. I have add exclude the active tab for color change, this will solve the issue. Find the patch for same
Comment #4
amit.mall commentedComment #5
dagmarPatch #3 does not work for me:
Comment #6
dagmarWith this configuration and this patch I see this.
Comment #7
rauch commentedWith the patch #3, the font color of the active tab is ok at page load. But switching tabs by clicking e.g. from "Manage" to "Admin" then the foreground color is used again (on my site white) and the font is not visible.
Comment #8
rauch commentedPatch #6 is working on my site. Thanks.
Comment #10
isholgueras commentedI've reproduced the issue on 10.2, the patch #6 applies and fixes the issue.
Committed to 4.x and I will include it in the next release.
Thanks!
Comment #11
cafuego commentedGracias! :-)
Comment #12
drewcking commentedPatch #6 is working for me on 10.3.0 as well.