Skip to content

Commit

Permalink
fix: diamond-color-valid and diamond-color-invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
ella-etch committed May 28, 2024
1 parent ce4cbc0 commit 720b703
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions components/content/HelpText/HelpText.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ diamond-help-text {
font-size: var(--diamond-help-text-font-size);

&[state='valid'] {
color: var(--diamond-help-text-color-success);
color: var(--diamond-help-text-color-valid);
}

&[state='invalid'] {
color: var(--diamond-help-text-color-error);
color: var(--diamond-help-text-color-invalid);
}
}
3 changes: 3 additions & 0 deletions styles/tokens/color.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@
--diamond-color-green-100: #219653;

--diamond-color-red-100: #eb5757;

--diamond-color-valid: var(--diamond-color-green-100);
--diamond-color-invalid: var(--diamond-color-red-100);
}
4 changes: 2 additions & 2 deletions styles/tokens/input.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
--diamond-input-border-radius: var(--diamond-radius);
--diamond-input-border-color: var(--diamond-theme-border-color);
--diamond-input-border-color-hover: var(--diamond-theme-border-color-hover);
--diamond-input-border-color-valid: var(--diamond-color-green-100);
--diamond-input-border-color-invalid: var(--diamond-color-red-100);
--diamond-input-border-color-valid: var(--diamond-color-valid);
--diamond-input-border-color-invalid: var(--diamond-color-invalid);

--diamond-input-outline-offset: 4px;

Expand Down
4 changes: 2 additions & 2 deletions styles/tokens/label.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
--diamond-label-height: var(--diamond-spacing-thumb);

--diamond-help-text-color: var(--diamond-theme-color);
--diamond-help-text-color-success: var(--diamond-input-border-color-valid);
--diamond-help-text-color-error: var(--diamond-input-border-color-invalid);
--diamond-help-text-color-valid: var(--diamond-color-valid);
--diamond-help-text-color-invalid: var(--diamond-invalid);
--diamond-help-text-font-size: var(--diamond-font-size-sm);
}

0 comments on commit 720b703

Please sign in to comment.