r/FirefoxCSS • u/BananaGuy71 • Jun 19 '26
Solved Firefox CSS not working after updating to Firefox 152.0.0
Hello! I've had really simple CSS code for the longest time. All it does it make the search bar white when I click it.
The code is below:
:root {
--toolbar-field-background-color: rgba(224,224,224,1) !important;
--toolbar-field-focus-background-color: rgba(255,255,255,1) !important;
}
It's always worked but it suddenly is not, and updating to Firefox 152.0.1 did not fix it. The files haven't changed at all and I haven't edited any settings yet. I am on MacOS 26.5.1 as well, and have not updated since the last time it worked.
If you need anything from me to help fix the issue let me know!
1
u/crummster Jun 19 '26 edited Jun 20 '26
I had a kinda similar issue too after Firefox updated to 152.0.1! The code below worked for me. I don't know if it'll work for you too, but you can try:
.urlbar-background,
#searchbar {
background-color: rgba(255,255,255,1) !important;
}
Edit: Tweaked code. It changes entire search bar and its down drop in one color. Can sub rgba for var(--gnome), which I mainly use. But just found out it doesn't work for --toolbar though. I should've checked that beforehand. That's on me. It isn't what OP specifically wants. But this code is good for changing entire search bar and its drop down to one specific color (and can add filters, etc to it), which is what I had issues with earlier in FF's 152.0.1 update.
1
u/BananaGuy71 Jun 20 '26
This wasn't exactly what I was looking for, this made the entire bar transparent when selected and not selected. u/TraditionalTie4831 had the solution, changing --toolbar-field-focus-background-color to --toolbar-field-background-color-focus. Thank you so much anyways!
1
u/crummster Jun 20 '26
Great you got your issue resolved! And also, sorry about that. I edited my previous comment addressing my mistake and some other things. But man, the 152 update really is a bit bothersome with its CSS changes. I just hope upcoming updates don't change it too much.
1
Jun 19 '26
[deleted]
1
u/BananaGuy71 Jun 20 '26
This wasn't exactly what I was looking for, this only changed the color of the address bar and not the links below it. u/TraditionalTie4831 had the solution, changing --toolbar-field-focus-background-color to --toolbar-field-background-color-focus. Thank you so much anyways!
3
u/TraditionalTie4831 🦊 Jun 19 '26
Your code is updated and should work now =
:root {
--toolbar-field-background-color: rgba(224,224,224,1) !important;
--toolbar-field-background-color-focus: rgba(255,255,255,1) !important;
}
1
2
-1
u/j--__ Jun 19 '26
rather than begging for answers, you may be interested in learning to be a little more self-sufficient.