Skip to content

Commit

Permalink
fix: use spans inside button tag instead of divs (#994)
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 committed Feb 2, 2021
1 parent 9216ffa commit f5c2a27
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/docsearch-react/src/DocSearchButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,18 @@ export const DocSearchButton = React.forwardRef<
{...props}
ref={ref}
>
<div className="DocSearch-Button-Container">
<span className="DocSearch-Button-Container">
<SearchIcon />
<span className="DocSearch-Button-Placeholder">Search</span>
</div>
</span>

{key !== null ? (
<div className="DocSearch-Button-Keys">
<span className="DocSearch-Button-Keys">
<span className="DocSearch-Button-Key">
{key === ACTION_KEY_DEFAULT ? <ControlKeyIcon /> : key}
</span>
<span className="DocSearch-Button-Key">K</span>
</div>
</span>
) : null}
</button>
);
Expand Down

0 comments on commit f5c2a27

Please sign in to comment.