Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Sync AppSearch.tsx with AppSearch.js #24363

Merged
merged 2 commits into from
Jan 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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