Skip to content

Commit

Permalink
fix bad usage of placeholder in Storybook example
Browse files Browse the repository at this point in the history
  • Loading branch information
mperrotti committed Oct 10, 2023
1 parent 92bd849 commit eb31aac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ActionList/ActionList.examples.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import Spinner from '../Spinner'
import Box from '../Box'
import Text from '../Text'
import VisuallyHidden from '../_VisuallyHidden'
import FormControl from '../FormControl'

const meta: Meta = {
title: 'Components/ActionList/Examples',
Expand Down Expand Up @@ -188,7 +189,10 @@ export function AsyncListWithSpinner(): JSX.Element {
filter. This pattern can be found in branch selection menus via the SelectPanel component.
</p>

<TextInput onChange={filter} placeholder="Search branches" sx={{m: 2, mb: 0, width: 'calc(100% - 16px)'}} />
<FormControl sx={{m: 2, mb: 0, width: 'calc(100% - 16px)'}}>
<FormControl.Label>Search branches</FormControl.Label>
<TextInput onChange={filter} block />
</FormControl>
<VisuallyHidden
isVisible={results.length === 0}
aria-live="polite"
Expand Down

0 comments on commit eb31aac

Please sign in to comment.