1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-09 16:56:36 +02:00

small UI fix for the search icon and placeholder of the search higlighting (#4422)

no changeset as it doesn't change a package, just an example.
This commit is contained in:
Devesh Kumar
2021-08-07 20:50:07 +05:30
committed by GitHub
parent ca9e2147c1
commit 40a12d7511

View File

@@ -48,8 +48,8 @@ const SearchHighlightingExample = () => {
<Icon <Icon
className={css` className={css`
position: absolute; position: absolute;
top: 0.5em; top: 0.3em;
left: 0.5em; left: 0.4em;
color: #ccc; color: #ccc;
`} `}
> >
@@ -60,7 +60,7 @@ const SearchHighlightingExample = () => {
placeholder="Search the text..." placeholder="Search the text..."
onChange={e => setSearch(e.target.value)} onChange={e => setSearch(e.target.value)}
className={css` className={css`
padding-left: 2em; padding-left: 2.5em;
width: 100%; width: 100%;
`} `}
/> />