1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-19 14:44:39 +01: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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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