Skip to content

Commit 7b992de

Browse files
authored
Dynamically adjust input color based on background in the Select component (#719)
1 parent 669da95 commit 7b992de

File tree

3 files changed

+21
-15
lines changed

3 files changed

+21
-15
lines changed

package-lock.json

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@nordcloud/gnui",
33
"description": "Nordcloud Design System - a collection of reusable React components used in Nordcloud's SaaS products",
4-
"version": "10.1.0",
4+
"version": "10.1.1",
55
"license": "MIT",
66
"repository": {
77
"type": "git",

src/components/select/Select.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,12 @@ function getDefaultStyles<
119119
Group extends GroupBase<Option> = GroupBase<Option>,
120120
>(): StylesConfig<Option, IsMulti, Group> {
121121
return {
122+
input: (styles) => {
123+
return {
124+
...styles,
125+
color: theme.color.text.text01,
126+
};
127+
},
122128
multiValue: (styles) => {
123129
return {
124130
...styles,

0 commit comments

Comments
 (0)