Skip to content

Commit

Permalink
Use --reactist-inputs-alert instead of --reactist-alert-tone-critical…
Browse files Browse the repository at this point in the history
…-border
  • Loading branch information
frankieyan committed Oct 30, 2023
1 parent dad4339 commit 1b5d490
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/base-field/base-field.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
}

.container.bordered.error {
border-color: var(--reactist-alert-tone-critical-border) !important;
border-color: var(--reactist-inputs-alert) !important;
}

.container.bordered .primaryLabel {
Expand Down
1 change: 1 addition & 0 deletions src/password-field/password-field.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ Note that these variables are shared with other components such as `Textfield`,
```
--reactist-inputs-focus
--reactist-inputs-idle
--reactist-inputs-alert
```

<Canvas withToolbar>
Expand Down
2 changes: 1 addition & 1 deletion src/select-field/select-field.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
}

.selectWrapper:not(.bordered).error select {
border-color: var(--reactist-alert-tone-critical-border) !important;
border-color: var(--reactist-inputs-alert) !important;
}

.selectWrapper:not(.bordered) option {
Expand Down
1 change: 1 addition & 0 deletions src/select-field/select-field.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ Note that these variables are shared with other components such as `Textfield`,
```
--reactist-inputs-focus
--reactist-inputs-idle
--reactist-inputs-alert
```

<Canvas withToolbar>
Expand Down
1 change: 1 addition & 0 deletions src/styles/design-tokens.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
/* input border colors */
--reactist-inputs-focus: var(--reactist-divider-primary);
--reactist-inputs-idle: var(--reactist-divider-secondary);
--reactist-inputs-alert: rgb(209, 69, 59);

/* border-radius */
--reactist-border-radius-small: 5px;
Expand Down
2 changes: 1 addition & 1 deletion src/text-area/text-area.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ See https://css-tricks.com/the-cleanest-trick-for-autogrowing-textareas/
.textAreaContainer.error:not(.bordered) .innerContainer::after,
.textAreaContainer.error:not(.bordered) textarea,
.textAreaContainer.bordered.error {
border-color: var(--reactist-alert-tone-critical-border) !important;
border-color: var(--reactist-inputs-alert) !important;
}

.innerContainer {
Expand Down
1 change: 1 addition & 0 deletions src/text-area/text-area.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ Note that these variables are shared with other components such as `Textfield`,
```
--reactist-inputs-focus
--reactist-inputs-idle
--reactist-inputs-alert
```

<Canvas withToolbar>
Expand Down
2 changes: 1 addition & 1 deletion src/text-field/text-field.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
}

.inputWrapper:not(.bordered).error {
border-color: var(--reactist-alert-tone-critical-border) !important;
border-color: var(--reactist-inputs-alert) !important;
}

.inputWrapper input {
Expand Down
1 change: 1 addition & 0 deletions src/text-field/text-field.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ Note that these variables are shared with other components such as `PasswordFiel
```
--reactist-inputs-focus
--reactist-inputs-idle
--reactist-inputs-alert
```

<Canvas withToolbar>
Expand Down

0 comments on commit 1b5d490

Please sign in to comment.