-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Modifies shortcut hierarchy in modal #16724
Conversation
…ection right under the modal header.
@mapk I hope you don't mind, I pushed a few commits to tidy up a few things:
|
@talldan I love the help! Thanks. I'm browsing your commits to brush up my skills! |
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.
I left a comment regarding the usage of a fixed number suggesting a variable instead. Other than that the changes look good to me 👍
&__section { | ||
margin: 0 0 2rem 0; | ||
} | ||
|
||
&__main-shortcuts .edit-post-keyboard-shortcut-help__shortcut-list { | ||
// Push the shortcut to be flush with top modal header. | ||
margin-top: -17px; |
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.
Can we use margin-top: -$panel-padding
which is -16px to avoid an hardcoded value?
@jorgefilipecosta I couldn't just use the So I opted to add a |
I think this is a small but nice addition. It should bring more awareness of how to invoke keyboard shortcuts modal. |
Thanks @enriquesanchez! @jorgefilipecosta can I get one last code review. I'd like to have a sanity check on using two variables to solve this. |
I'm not entirely convinced about using In testing though, this is working well. Let's get it in. |
Thanks, @talldan. 🎉 |
* Fixes #16691. Moves the shortcut to open shortcut modal to it's own section right under the modal header. * Only render shortcut title when a value is provided * Use classname to modify style for first shortcut * Update snapshots * Using variable for elements top-margin for positioning.
* Fixes #16691. Moves the shortcut to open shortcut modal to it's own section right under the modal header. * Only render shortcut title when a value is provided * Use classname to modify style for first shortcut * Update snapshots * Using variable for elements top-margin for positioning.
Fixes #16691. Moves the shortcut to open shortcut modal to its own section right under the modal header.
How has this been tested?
Tested locally.
Screenshots
Before:
Proposed:
Types of changes
CSS changes along with a bit of Javascript in the keyboard-shortcut config file.
Non-breaking change.
Checklist: