-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
UI: Show current search shortcut in search box sidebar #21619
UI: Show current search shortcut in search box sidebar #21619
Conversation
Co-authored-by: phunguyenmurcul <51897872+phunguyenmurcul@users.noreply.github.com>
22419a5
to
cf70e64
Compare
Co-authored-by: phunguyenmurcul <51897872+phunguyenmurcul@users.noreply.github.com>
…thub.com/gitstart/storybook into ui/show-current-search-shortcut
@@ -126,6 +126,7 @@ const FocusKey = styled.code(({ theme }) => ({ | |||
borderRadius: 3, | |||
userSelect: 'none', | |||
pointerEvents: 'none', | |||
fontFamily: 'inherit', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is super interesting! I think you spotted a problem that has been there for quite some time cc @MichaelArestad
The font-family for code
elements is ui-monospace, while the rest of Storybook uses Nunito sans. I think it'd be better to handle this elsewhere, so we can also fix the issues in the setting tooltip. For instance, it looks like this now:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Howdy! Nice catch! Can you undo this change? I will fix this typeface in a followup PR. Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! Thank you so much for your contribution <3
…thub.com/gitstart/storybook into ui/show-current-search-shortcut
Co-authored-by: phunguyenmurcul <51897872+phunguyenmurcul@users.noreply.github.com>
UI: Show current search shortcut in search box sidebar
Issue: #21325
What I did
/
on search field by the shortcut keyHow to test
/
This code was written and reviewed by GitStart Community. Growing great engineers, one PR at a time.