Skip to content

fix(Select): fix background issues with inline variant optgroups#9636

Merged
kodiakhq[bot] merged 4 commits into
carbon-design-system:mainfrom
tw15egan:select-fix
Oct 4, 2021
Merged

fix(Select): fix background issues with inline variant optgroups#9636
kodiakhq[bot] merged 4 commits into
carbon-design-system:mainfrom
tw15egan:select-fix

Conversation

@tw15egan

@tw15egan tw15egan commented Sep 10, 2021

Copy link
Copy Markdown
Contributor

Closes #9625
Closes #9112

Add in a bit more specificity to override default Firefox styles on optgroup as well as sets the correct background-color

Changelog

Changed

  • background: $background-hover; as per the issue. Needed to add optgroup specificity to correct it in Firefox as well

Testing / Reviewing

I have not been able to test in Windows, but this fixes the Firefox issue. I'm aware the optgroup does not match the option, but it is at least readable now. The background is set via the select background color (known Firefox bug)

For testing:
Need to check each theme in these three scenarios, in Windows and Mac (Firefox)

  • Normal Select
  • Inline Select
  • Pagination (uses inline Select)

@tw15egan tw15egan requested a review from a team as a code owner September 10, 2021 12:17
@netlify

netlify Bot commented Sep 10, 2021

Copy link
Copy Markdown

✔️ Deploy Preview for carbon-react-next ready!

🔨 Explore the source changes: cd21602

🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-react-next/deploys/615b174bd48b250007c4d25d

😎 Browse the preview: https://deploy-preview-9636--carbon-react-next.netlify.app

@netlify

netlify Bot commented Sep 10, 2021

Copy link
Copy Markdown

✔️ Deploy Preview for carbon-components-react ready!
Built without sensitive environment variables

🔨 Explore the source changes: cd21602

🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-components-react/deploys/615b174bccef6900079614cc

😎 Browse the preview: https://deploy-preview-9636--carbon-components-react.netlify.app

@netlify

netlify Bot commented Sep 10, 2021

Copy link
Copy Markdown

✔️ Deploy Preview for carbon-elements ready!

🔨 Explore the source changes: cd21602

🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-elements/deploys/615b174b1460730007ab52a1

😎 Browse the preview: https://deploy-preview-9636--carbon-elements.netlify.app

@tw15egan

Copy link
Copy Markdown
Contributor Author

It looks like a lot of this is related to https://bugzilla.mozilla.org/show_bug.cgi?id=1394491

Basically, the select optgroup background styles are set by the select background and can't be overridden in Firefox. I've removed the transparent styles, and set explicit background in Pagination and Select.

For testing:
Need to check each theme in these three scenarios, in Windows and Mac (Firefox)

  • Normal Select
  • Inline Select
  • Pagination (uses inline Select)

@tay1orjones tay1orjones left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm aware the optgroup does not match the option, but it is at least readable now.

I get what you're saying after looking at inline:

image

It all looks good for me on Mac - I don't have a windows environment set up yet. @dakahn would you be able to test firefox on windows?

@kodiakhq kodiakhq Bot merged commit be4e770 into carbon-design-system:main Oct 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[a11y]: Pagination dropdown white-on-white for g90 and g100 themes on Windows Inline Select component needs background in Chrome/Windows

3 participants