Skip to content

Commit

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

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

&[state='error'] {
&[state='invalid'] {
color: var(--diamond-help-text-color-error);
}
}
2 changes: 1 addition & 1 deletion components/content/HelpText/HelpText.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default {
control: {
type: 'select',
},
options: ['error', 'success'],
options: ['valid', 'invalid'],
},
},
};
Expand Down
2 changes: 1 addition & 1 deletion components/content/HelpText/HelpText.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { JSXCustomElement } from '../../../types/jsx-custom-element';

export interface HelpTextAttributes {
state?: 'error' | 'success';
state?: 'valid' | 'invalid';
}

declare global {
Expand Down

0 comments on commit ce4cbc0

Please sign in to comment.