Skip to content

Commit cf9ab24

Browse files
authored
Fix SearchAutocomplete anatomy diagram (#3558)
* fix SearchAutocomplete anatomy diagram * update fonts * fix line colors
1 parent cf14f28 commit cf9ab24

File tree

3 files changed

+106
-2
lines changed

3 files changed

+106
-2
lines changed
Lines changed: 104 additions & 0 deletions
Loading
Binary file not shown.

packages/@react-aria/autocomplete/docs/useSearchAutocomplete.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import overlaysDocs from 'docs:@react-aria/overlays';
1818
import packageData from '@react-aria/autocomplete/package.json';
1919
import selectionDocs from 'docs:@react-stately/selection';
2020
import statelyDocs from 'docs:@react-stately/combobox';
21-
import anatomy from 'url:./searchautocomplete-anatomy.png';
21+
import Anatomy from './anatomy.svg';
2222
import ChevronRight from '@spectrum-icons/workflow/ChevronRight';
2323
import {ExampleCard} from '@react-spectrum/docs/src/ExampleCard';
2424

@@ -69,7 +69,7 @@ Autocomplete for search fields can be implemented using the [<datalist>](h
6969

7070
## Anatomy
7171

72-
<img src={anatomy} alt="Anatomy of useSearchAutocomplete" height={400} style={{display: 'block', margin: '20px auto'}} />
72+
<Anatomy />
7373

7474
A search autocomplete consists of a label, an input which displays the current value, and a list box popup. Users can type within the input
7575
to see search suggestions within the list box. The list box popup may be opened by a variety of input field interactions specified

0 commit comments

Comments
 (0)