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

Inline Select component needs background in Chrome/Windows #9112

Closed
2 of 3 tasks
brunnerh opened this issue Jul 5, 2021 · 2 comments · Fixed by #9138 or #9636
Closed
2 of 3 tasks

Inline Select component needs background in Chrome/Windows #9112

brunnerh opened this issue Jul 5, 2021 · 2 comments · Fixed by #9138 or #9636
Labels
component: select package: components carbon-components severity: 2 https://ibm.biz/carbon-severity type: bug 🐛

Comments

@brunnerh
Copy link

brunnerh commented Jul 5, 2021

What package(s) are you using?

  • carbon-components
  • carbon-components-react
  • carbon-components-svelte

Detailed description

In Chrome on Windows a <select> background needs to be set to fit the <color>, otherwise the options can become unreadable. This is very OS and browser-specific; e.g. it is not a problem for Firefox on Windows or Chrome on Mac.

Affected is the <Select> component with the inline class set without mouse hover in a dark theme. E.g. used in <Pagination>.

With hover (CSS sets background):
image

Without hover:
image

Steps to reproduce the issue

  1. Use dark theme
  2. Add <Pagination>
  3. Open one of the dropdowns
  4. Move mouse away

The official component page demonstrates this behavior.

Additional information

Relevant CSS that seems to cause this:

.bx--select--inline .bx--select-input {
    ...
    background-color: transparent;
    ...
}

The select already has an explicit background otherwise.

@dakahn
Copy link
Contributor

dakahn commented Jul 28, 2021

still seeing this on Windows in Chrome latest
image

@dakahn dakahn reopened this Jul 28, 2021
@dakahn dakahn added the severity: 2 https://ibm.biz/carbon-severity label Jul 28, 2021
@brunnerh
Copy link
Author

brunnerh commented Aug 3, 2021

For me the problem is no longer there both with the Svelte components (which uses carbon-components 10.40.0) and on the website, which shows:

Vanilla Components version ^10.40.0
React Components version ^7.40.0

🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: select package: components carbon-components severity: 2 https://ibm.biz/carbon-severity type: bug 🐛
Projects
None yet
5 participants