Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically adjust input color based on background in the Select component #719

Merged
merged 16 commits into from
Feb 21, 2024
3 changes: 3 additions & 0 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
pull-requests: write
timeout-minutes: 30
steps:
- uses: reviewdog/action-setup@v1
with:
reviewdog_version: v0.15.0
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
Expand Down
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
Loading