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.

Inline dropdown does not change color when light prop is set to true

See original GitHub issue

[Dropdown]: Inline dropdown does not change color when light prop is set to true

What package(s) are you using?

  • carbon-components
  • carbon-components-react

Detailed description

Describe in detail the issue you’re having.

When using the inline variant of the Dropdown component, the light prop does not change the color of the dropdown.

Is this issue related to a specific component?

Dropdown.

What did you expect to happen? What happened instead? What would you like to see changed?

I expect that when I add the light prop to the component, the dropdown will change color ($ui-02 background in my use case)

What browser are you working in?

Chrome

What version of the Carbon Design System are you using?

carbon-components: 10.20.0
carbon-components-react: 7.20.0

What offering/product do you work on? Any pressing ship or release dates we should be aware of?

Watson Assistant

Steps to reproduce the issue

  1. Create or find an exiting dropdown component
  2. Add prop type="inline"
  3. See the default color of dropdown for theme being used
  4. Add light prop to dropdown
  5. See that color of dropdown doesn’t change

https://codesandbox.io/s/wizardly-kare-46bgo?fontsize=14&hidenavigation=1&theme=dark

Additional information

light=false image image


light=true image image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

3reactions
tw15egancommented, Oct 7, 2020

🟢 Design has signed off on this variation📝

0reactions
sstrubbergcommented, Nov 30, 2022

Closing this request based on the fact that the light prop has been removed in v11. Happy to revisit if needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to change dropdown background color on certain pages?
I have a webpage with a header with several dropdown menus in it. What I would like is to have certain pages, when...
Read more >
Dropdowns | React-Bootstrap
This behaviour can be changed by using the autoClose property. By default, autoClose is set to the default value true and behaves like...
Read more >
Colors - Bootstrap
Convey meaning through color with a handful of color utility classes. Includes support for styling links with hover states, too.
Read more >
border-color - CSS: Cascading Style Sheets - MDN Web Docs
The border-color shorthand CSS property sets the color of an element's border.
Read more >
Theme Color | Visual Studio Code Extension API
Some colors should not be opaque in order to not cover other annotations. ... A set of colors for all Dropdown widgets such...
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