Select elements have grey background in Firefox
See original GitHub issueDescription of the issue
In the latest Firefox release (94.0.1), select
elements have a grey background by default. This makes them look disabled:
This also affects the main GOV.UK site:
I think strictly this is a Firefox issue, but from https://bugzilla.mozilla.org/show_bug.cgi?id=1715064 it sounds like they consider it an expected change.
There was a similar issue with Ubuntu a couple of years ago (https://github.com/alphagov/govuk-frontend/issues/1659). The issue was closed off because setting a background colour on select
caused issues in Firefox if the user has changed their browser default colours, but that issue now appears to be fixed
Steps to reproduce the issue
- Download the latest Firefox release
- Visit https://design-system.service.gov.uk/components/select/
Actual vs expected behaviour
I would expect the background of the select to match the background colour of the page
Environment (where applicable)
- Operating system: Windows 10 and macOS
- Browser: Firefox
- Browser version: 94.0.1
- GOV.UK Frontend Version: 3.14.0
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Why does Firefox set a background color on the select arrow ...
I did some research before asking but most results I found was how to completely get rid of the arrow button with -moz-appearance:...
Read more >Select default background color changed from white to gray
Select default background color changed from white to gray ... It seems to be the only data entry form element that has a...
Read more >awful default black gray background , when webiste not define ...
For a long time more than 2 years , I see a "default black gray background" on websites that not define background color...
Read more >Firefox v45 suddenly has gray page background!
Firefox v45 suddenly has medium dark gray page background! ... right-click the gray area and choose Inspect Element (Q).
Read more >Inspect and select colors — Firefox Source Docs documentation
Color picker showing a case of good contrast with the background Color picker ... to use the eyedropper to select a new color...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @matteason and @danacotoran for raising these issues - we’ve implemented a fix which should be released in the next version of GOV.UK Frontend. I’m also going to write up a ticket to report the issue in Safari, as it applies to the default select dropdown (i.e: it’s not specific to the GOV.UK Frontend select).
A bit of testing to confirm when this was introduced:
Windows 10, Firefox 94: Grey background Windows 10, Firefox 95 (beta): Grey background Windows 10, Firefox 93: White background
Mac, Firefox 94: Grey background Mac, Firefox 95 (beta): Grey background Mac, Firefox 93: White background