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.

Dark Mode not working on Select component with <optgroup>

See original GitHub issue

🐛 Bug report

Background and Text of of Select popup is white when using Dark Mode with Select optgroup image image

💥 Steps to reproduce

With dark mode enabled,

<Select>
      <optgroup label="Group">
          <option value="test1">Test1</option>
          <option value="test2">Test2</option>
      </optgroup>
</Select>

💻 Link to reproduction

https://codesandbox.io/s/chakra-ui-dark-mode-select-optgroup-issue-8dxbw?file=/src/App.tsx

🧐 Expected behavior

Background should be dark, text should be white

🌍 System information

Software Version(s)
Chakra UI 1.03
Browser Chrome 87.0.4280.88
Operating System Windows 10

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
with-heartcommented, Aug 7, 2022

@filliph Yeah sure! You’re welcome to open a PR with a working fix!

2reactions
mtergelcommented, Aug 23, 2021

@with-heart

issue still exists on Firefox (91.0.1 M1). Tested on the official website image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ant design dark theme for group select component
I'm building a dark theme page where I need a Group select component. Ant Design provides this component in white color.
Read more >
1394491 - Unable to style <optgroup> label's background
This test case shows that if a background is applied to the SELECT then if shows on the select (when contracted) and also...
Read more >
HTML optgroup tag - W3Schools
The <optgroup> tag is used to group related options in a <select> element (drop-down list). If you have a long list of options,...
Read more >
Select Group options Example - Mobiscroll
Enable group headers though the group property of the options or the optgroup of the native select. Grouping works for both single and ......
Read more >
ngOptions - AngularJS: API
If not specified, select expression will default to value . group : The result of this expression will be used to group options...
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