Skip to content

Commit

Permalink
[docs] Sync AppSearch.tsx with AppSearch.js (#24363)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lagicrus committed Jan 11, 2021
1 parent da612d4 commit a86ae50
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/src/modules/branding/AppSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ const useStyles = makeStyles(
transition: theme.transitions.create('opacity', {
duration: theme.transitions.duration.shortest,
}),
// So that clicks target the input.
// Makes the text non selectable but neither is the placeholder or adornment.
pointerEvents: 'none',
'&.Mui-focused': {
opacity: 0,
},
Expand Down Expand Up @@ -163,7 +166,7 @@ export default function AppSearch() {
}}
/>
<div className={clsx(classes.shortcut, { 'Mui-focused': focused })}>
{macOS ? '⌘' : 'Ctrl'}K
{macOS ? '⌘' : 'Ctrl+'}K
</div>
</div>
);
Expand Down

0 comments on commit a86ae50

Please sign in to comment.