question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Select elements have grey background in Firefox

See original GitHub issue

Description of the issue

In the latest Firefox release (94.0.1), select elements have a grey background by default. This makes them look disabled:

image

This also affects the main GOV.UK site:

image

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

  1. Download the latest Firefox release
  2. 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:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
vanitabarrettcommented, Feb 1, 2022

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).

1reaction
vanitabarrettcommented, Nov 17, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found