Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Select' Component style varies between chromium and firefox browsers #527

Open
TomGNorris opened this issue Jun 20, 2024 · 2 comments
Open

Comments

@TomGNorris
Copy link

What is the problem?

Viewing the select component in the design system shows different styling between firefox, safari and chromium browsers.

Firefox/Safari:
image

Chromium:
image

This is resulting in some styling on NHS services (e.g. Register with a GP) being customised/overridden to avoid the greyed out appearance which looks like the dropdown is disabled.

Bugs

Expectation:
Styling of the dropdown to be consistent with a white background in the dropdown on all core browsers.

Reality:
Styling of the dropdown appears differently between firefox/safari (where it appears with a grey #e4e4e8 background) and chromium based browsers e.g. Arc, Chrome, Edge (where it appears with a white background)

Reproducing the bug

  • NHSUK frontend version:
  • Node version:
  • npm version:

Steps to reproduce it:

  1. Open https://service-manual.nhs.uk/design-system/components/select with a chromium based browser and either firefox/safari
  2. Observe the background colour of the dropdown in the specimen component card

Attachments

Firefox/Safari:
image

Chromium:
image

@anandamaryon1
Copy link
Collaborator

Thanks for raising this. It is happening because the select styling depends on the browser and OS, so it looks even more different on macOS in safari for example.

However, the fact that it looks like it is disabled when compared with our other form elements (eg. a text input) is an issue, and one that GOV.UK seem to have fixed a while back: alphagov/govuk-frontend#2524

@frankieroberto
Copy link

I’m seeing a different variant again in Safari (version 17.4 on MacOS):

Screenshot 2024-06-27 at 22 42 51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants