Skip to content

Commit a75efd6

Browse files
committed
feat(TextInput): add description story
1 parent a215a58 commit a75efd6

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

components/mdc/TextInput/_index.scss

+3
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ $radius: 8px !default;
2323
.required {
2424
color: var(--mdc-required-input, rgba(0, 0, 0, 0.6));
2525
}
26+
.mdc-theme--neutral {
27+
color: var(--mdc-theme-neutral);
28+
}

stories/MoneyInput.stories.svelte

+2
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,5 @@ let lastKey = ''
4444
<Story name="Autofocus" args={copyAndModifyArgs(args, { autofocus: true })} />
4545

4646
<Story name="Disabled" args={copyAndModifyArgs(args, { disabled: true })} />
47+
48+
<Story name="Description" args={copyAndModifyArgs(args, { description: 'a description' })} />

stories/TextArea.stories.svelte

+2
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,5 @@ const args = {
3333
<Story name="Autofocus" args={copyAndModifyArgs(args, { autofocus: true })} />
3434

3535
<Story name="Required" args={copyAndModifyArgs(args, { required: true })} />
36+
37+
<Story name="Description" args={copyAndModifyArgs(args, { description: 'a description' })} />

stories/TextField.stories.svelte

+2
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,5 @@ let lastKey = ''
3737
<Story name="icon" args={copyAndModifyArgs(args, { icon: 'home' })} />
3838

3939
<Story name="Required" args={copyAndModifyArgs(args, { required: true })} />
40+
41+
<Story name="Description" args={copyAndModifyArgs(args, { description: 'a description' })} />

stories/_theme.scss

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
--mdc-theme-primary-variant: #0078af;
66
--mdc-theme-secondary: #ff4800;
77
--mdc-theme-error: #c30000;
8+
--mdc-theme-neutral: #6d7580;
89
--mdc-required-input: gray;
910
--progress-bar-color: #005cb9;
1011
--main-content-height: unset;

0 commit comments

Comments
 (0)