Skip to content

Commit

Permalink
fix(TextInput): match skeleton state to other form elements (#7865)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
tw15egan and kodiakhq[bot] authored Feb 25, 2021
1 parent 3688fec commit 0310add
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,13 @@
}
}

//-----------------------------
// Skeleton
//-----------------------------
.#{$prefix}--skeleton.#{$prefix}--text-input {
@include skeleton;
}

//-----------------------------
// Fluid Text Input
//-----------------------------
Expand Down
13 changes: 1 addition & 12 deletions packages/react/src/components/TextInput/TextInput-story.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,18 +204,7 @@ FullyControlledTogglePasswordVisibility.parameters = {
},
};

export const Skeleton = () => (
<div
aria-label="loading text input"
aria-live="assertive"
role="status"
tabIndex="0" // eslint-disable-line jsx-a11y/no-noninteractive-tabindex
>
<TextInputSkeleton />
<br />
<TextInputSkeleton hideLabel />
</div>
);
export const Skeleton = () => <TextInputSkeleton />;

Skeleton.storyName = 'skeleton';

Expand Down

0 comments on commit 0310add

Please sign in to comment.