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
💥 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:
- Created 3 years ago
- Comments:8 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@filliph Yeah sure! You’re welcome to open a PR with a working fix!
@with-heart
issue still exists on Firefox (91.0.1 M1). Tested on the official website