1
0
Fork 0

fix(docsearch): rename DocSearch-Button CSS class

This commit is contained in:
François Chalifour 2020-07-22 10:36:13 +02:00
parent 2b2cbcf984
commit 8588b965e9

View file

@ -32,19 +32,14 @@ export const DocSearchButton = React.forwardRef<
}, []);
return (
<button
type="button"
className="DocSearch-SearchButton"
{...props}
ref={ref}
>
<button type="button" className="DocSearch-Button" {...props} ref={ref}>
<SearchIcon />
<span className="DocSearch-SearchButton-Placeholder">Search</span>
<span className="DocSearch-Button-Placeholder">Search</span>
<span className="DocSearch-SearchButton-Key">
<span className="DocSearch-Button-Key">
{key === ACTION_KEY_DEFAULT ? <ControlKeyIcon /> : key}
</span>
<span className="DocSearch-SearchButton-Key">K</span>
<span className="DocSearch-Button-Key">K</span>
</button>
);
});