Skip to content

Commit 0310add

Browse files
fix(TextInput): match skeleton state to other form elements (#7865)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent 3688fec commit 0310add

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

packages/components/src/components/text-input/_text-input.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,13 @@
214214
}
215215
}
216216

217+
//-----------------------------
218+
// Skeleton
219+
//-----------------------------
220+
.#{$prefix}--skeleton.#{$prefix}--text-input {
221+
@include skeleton;
222+
}
223+
217224
//-----------------------------
218225
// Fluid Text Input
219226
//-----------------------------

packages/react/src/components/TextInput/TextInput-story.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -204,18 +204,7 @@ FullyControlledTogglePasswordVisibility.parameters = {
204204
},
205205
};
206206

207-
export const Skeleton = () => (
208-
<div
209-
aria-label="loading text input"
210-
aria-live="assertive"
211-
role="status"
212-
tabIndex="0" // eslint-disable-line jsx-a11y/no-noninteractive-tabindex
213-
>
214-
<TextInputSkeleton />
215-
<br />
216-
<TextInputSkeleton hideLabel />
217-
</div>
218-
);
207+
export const Skeleton = () => <TextInputSkeleton />;
219208

220209
Skeleton.storyName = 'skeleton';
221210

0 commit comments

Comments
 (0)