Skip to content

Commit

Permalink
fix(select): Disabled Select should use color-background (#4191)
Browse files Browse the repository at this point in the history
* fix(select): use parent for background color in disabled state

* fix(select): add changeset

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
PixeledCode and kodiakhq[bot] authored Dec 18, 2024
1 parent 77ec1d1 commit 58096a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/hungry-countries-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@twilio-paste/select": patch
"@twilio-paste/core": patch
---

[Select]: Fix wrong background color during disabled state
1 change: 1 addition & 0 deletions packages/paste-core/components/select/src/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export const SelectElement = React.forwardRef<HTMLSelectElement, SelectProps>(
width="100%"
_disabled={{
color: variant === "inverse" ? "colorTextInverseWeakest" : "colorTextWeaker",
backgroundColor: "transparent",
cursor: "not-allowed",
opacity: 1,
}}
Expand Down

0 comments on commit 58096a1

Please sign in to comment.