-
Notifications
You must be signed in to change notification settings - Fork 28
Add keyboard shortcuts modal help #298
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
Conversation
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.
But I like that idea with "top-right 'Help' button" more
Already talked with @carlosms about this on slack and "only the help button, and then inside the modal, the link to the reference and the keyboard shortcut list" seems like an elegant solution to this UI. Sorry for missing this notification. |
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.
LGTM but a couple of nitpicking concerns
frontend/src/components/HelpModal.js
Outdated
<Modal show={showModal} onHide={onHide} bsSize="medium"> | ||
<Modal.Header> | ||
<Modal.Title> | ||
KEYBOARD SHORTCUTS |
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'd prefer un text-transform
with CSS
frontend/src/components/HelpModal.js
Outdated
<tbody> | ||
<tr> | ||
<td className="keys"> | ||
<div className="key">Ctrl</div> +{' '} |
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.
mmmm... is the {' '}
any kind of sorcery to add space between +
and Enter
?
If so, why not using a left padding/margin, or a cleaner
?
Signed-off-by: Carlos Martín <carlos.martin.sanchez@gmail.com>
a916237
to
6054671
Compare
Redone as one modal including the gitbase docs link and the shortcuts table, including the suggestions made by @dpordomingo |
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.
Thank you Carlos 👍
Fix #293.
@ricardobaeta please comment on icon placement. Also, it would be good if you could provide it as
svg
instead ofpng
, like the rest of the icons.Although it feels to me it is not too subtle for a help icon... One thing we could change: remove this keyboard icon, and have the top-right 'Help' button we already have open a modal with the text: