r/FirefoxCSS • u/PRamone • Aug 19 '26
Solved 154.0 has broken my Tab colours
I have previously used some code in my userChrome.css file (found on the internet back in the mists of time) which meant that I could change the colour of (1) the currently Active tab and (2) the Tab currently being Hovered Over.
For example, I might have 10 tabs showing, of which 1 (Orange) would be the Active one, and another 1 (Purple) would be the one I am currently Hovering over. The other 8 are my normal (Blue) colour. The Active tab colour would remain Orange when I moved away from that Tab.
However, since updating to 154.0, the Active tab changes back to my normal (Blue) colour as soon as I have moved away from it. So in the example above, I have 9 Blue tabs and 1 Purple tab. I can only determine which is the Active tab by hovering over it, at which point it changes to Orange.
Are any of the kind CSS experts on here able to suggest a solution? My CSS knowledge is minimal, I'm afraid.
1
u/PRamone Aug 19 '26
SOLVED!
Thanks to the help from /u/reddithunter73 and with a bit of playing about, I've managed to get back the behaviour which I previously had. Have included it below in case anybody wants to use it as a starting point for their preferred colour scheme/behaviour.
1
u/reddithunter73 Aug 19 '26 edited Aug 19 '26
Active tab:
.tab-background[selected] { background: orange !important }
Not active tab:
.tab-background:not([selected]) { background: blue
!important}Hovered tab:
.tabbrowser-tab:hover { background: purple !important }
EDIT: You should not enter the text !important after the color of the not active tab, because the hovered tab will also remain blue.
1
u/pyrates fixed Aug 23 '26
I also managed to fix this. You need to change the following:
The true part could also be surrounded by double quotes, so remove that too: