Skip to content

Commit

Permalink
fix button label on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Jul 16, 2023
1 parent 322431e commit 7ea3604
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/src/modules/components/AppSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,12 @@ export default function AppSearch(props) {

return (
<React.Fragment>
<SearchButton ref={searchButtonRef} onClick={onOpen} {...props}>
<SearchButton
ref={searchButtonRef}
onClick={onOpen}
{...props}
aria-labelledby="app-search-label"
>
<SearchIcon
fontSize="small"
sx={(theme) => ({
Expand All @@ -312,7 +317,7 @@ export default function AppSearch(props) {
}),
})}
/>
<SearchLabel>{search}</SearchLabel>
<SearchLabel id="app-search-label">{search}</SearchLabel>
<Shortcut>
{/* eslint-disable-next-line material-ui/no-hardcoded-labels */}
{macOS ? '⌘' : 'Ctrl+'}K
Expand Down

0 comments on commit 7ea3604

Please sign in to comment.