Skip to content

Commit

Permalink
Dynamically adjust input color based on background in the Select comp…
Browse files Browse the repository at this point in the history
…onent (#719)
  • Loading branch information
petesiudak committed Feb 21, 2024
1 parent 669da95 commit 7b992de
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
28 changes: 14 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@nordcloud/gnui",
"description": "Nordcloud Design System - a collection of reusable React components used in Nordcloud's SaaS products",
"version": "10.1.0",
"version": "10.1.1",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
6 changes: 6 additions & 0 deletions src/components/select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ function getDefaultStyles<
Group extends GroupBase<Option> = GroupBase<Option>,
>(): StylesConfig<Option, IsMulti, Group> {
return {
input: (styles) => {
return {
...styles,
color: theme.color.text.text01,
};
},
multiValue: (styles) => {
return {
...styles,
Expand Down

0 comments on commit 7b992de

Please sign in to comment.