Skip to content

Commit

Permalink
fix(select): background color in dark mode on windows (#3110)
Browse files Browse the repository at this point in the history
* fix(select): background color in dark mode on windows

* fix: inherit solid color

* fix: background for inverse
  • Loading branch information
SiTaggart committed Mar 28, 2023
1 parent 1a70c27 commit ac5a844
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/strange-spoons-hear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@twilio-paste/select': patch
'@twilio-paste/core': patch
---

[Select] Fixed a bug in dark mode on Windows where the options list was still white and the options were unreadable
3 changes: 2 additions & 1 deletion packages/paste-core/components/select/src/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ export const SelectElement = React.forwardRef<HTMLSelectElement, SelectProps>(
*/
height={undefined}
appearance="none"
backgroundColor="transparent"
// must set a solid color to inherit in options for Windows
backgroundColor={variant === 'inverse' ? 'colorBackgroundInverse' : 'colorBackgroundBody'}
border="none"
borderRadius="borderRadius20"
boxShadow="none"
Expand Down

0 comments on commit ac5a844

Please sign in to comment.