-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
right-sidebar: Add shortcut to keyboard instructions in the bottom. #9182
Conversation
Hello @zulip/server-sidebars members, this pull request was labeled with the "area: right-sidebar" label, so you may want to check it out! |
I think I'd prefer that this sit always in the bottom-right corner, rather than right after "Group PMs". And I think just having the icon in the corner is probably right (no need for the label). |
I'll second the idea that a small icon (ideally looking like "?") is probably sufficient, with hover text to explain what it is. |
I think an icon that's a keyboard is the right call; Dropbox Paper does that and it looks pretty nice. |
…ner. Fixes zulip#9182. Adds a link to the keyboard shortcuts popup at the bottom-right corner of the right sidebar. A div containing whitespace is added above the keyboard icon to keep it at the bottom-right corner of the sidebar. The height of the whitespace is calculated in `resize.js`. A tooltip saying `Keyboard Shortcuts` has been added to the icon.
…ner. Fixes zulip#9182. Adds a link to the keyboard shortcuts popup at the bottom-right corner of the right sidebar. A div containing whitespace is added above the keyboard icon to keep it at the bottom-right corner of the sidebar. The height of the whitespace is calculated in `resize.js`. A tooltip saying `Keyboard Shortcuts` has been added to the icon.
@timabbott I've made the required changes, the failing tests are due to some other commits I think. |
…ner. Fixes zulip#9182. Adds a link to the keyboard shortcuts popup at the bottom-right corner of the right sidebar. A div containing whitespace is added above the keyboard icon to keep it at the bottom-right corner of the sidebar. The height of the whitespace is calculated in `resize.js`. A tooltip saying `Keyboard Shortcuts` has been added to the icon.
@shubham-padia this looks great, but we should do a few tweaks:
|
@shubham-padia it looks like you pushed a new version after my last comment, but then didn't post a comment on GitHub. It turns out, GitHub doesn't send a notification to anyone else when you do that. So please always comment when you update a PR and are ready for another review. |
@timabbott I don't remember pushing a new version after your last comment. The changes requested are yet to be made. The conflicts are due to the commits made into the zulip master branch I think. |
…ner. Fixes zulip#9182. Adds a link to the keyboard shortcuts popup at the bottom-right corner of the right sidebar. A div containing whitespace is added above the keyboard icon to keep it at the bottom-right corner of the sidebar. The height of the whitespace is calculated in `resize.js`. A tooltip saying `Keyboard Shortcuts` has been added to the icon.
…ner. Fixes zulip#9182. Adds a link to the keyboard shortcuts popup at the bottom-right corner of the right sidebar. A div containing whitespace is added above the keyboard icon to keep it at the bottom-right corner of the sidebar. The height of the whitespace is calculated in `resize.js`. A tooltip saying `Keyboard Shortcuts` has been added to the icon.
@timabbott I've made the requested changes. I (unsuccessfully) tried to put the keyboard shortcut in the |
…ner. Fixes zulip#9182. Adds a link to the keyboard shortcuts popup at the bottom-right corner of the right sidebar. A div containing whitespace is added above the keyboard icon to keep it at the bottom-right corner of the sidebar. The height of the whitespace is calculated in `resize.js`. A tooltip saying `Keyboard Shortcuts(?)` has been added to the icon.
This looks great, visually. Do we really need to do set its height using logic in (The main downside of the current approach is that the thing jumps a bit every time I reload the page) @synicalsyntax do you have any ideas? |
…ner. Fixes zulip#9182. Adds a link to the keyboard shortcuts popup at the bottom-right corner of the right sidebar. A tooltip saying `Keyboard Shortcuts(?)` has been added to the icon. The icon is positioned using `position: fixed`.
…ner. Fixes zulip#9182. Adds a link to the keyboard shortcuts popup at the bottom-right corner of the right sidebar. A tooltip saying `Keyboard Shortcuts(?)` has been added to the icon. The icon is positioned using `position: fixed`.
@timabbott I've pushed some new changes removing the white space logic. |
…ner. Fixes zulip#9182. Adds a link to the keyboard shortcuts popup at the bottom-right corner of the right sidebar. A tooltip saying `Keyboard Shortcuts(?)` has been added to the icon. The icon is positioned using `position: fixed`.
…ner. Fixes zulip#9182. Adds a link to the keyboard shortcuts popup at the bottom-right corner of the right sidebar. A div containing whitespace is added above the keyboard icon to keep it at the bottom-right corner of the sidebar. The height of the whitespace is calculated in `resize.js`. A tooltip saying `Keyboard Shortcuts(?)` has been added to the icon.
@timabbott FYI this is open for review. |
…ner. Fixes zulip#9182. Adds a link to the keyboard shortcuts popup at the bottom-right corner of the right sidebar. A tooltip saying `Keyboard Shortcuts(?)` has been added to the icon. The icon is positioned using `position: fixed`.
Nice. Merged, thanks @shubham-padia! |
…ner. Fixes #9182. Adds a link to the keyboard shortcuts popup at the bottom-right corner of the right sidebar. A tooltip saying `Keyboard Shortcuts(?)` has been added to the icon. The icon is positioned using `position: fixed`.
…ner. Fixes zulip#9182. Adds a link to the keyboard shortcuts popup at the bottom-right corner of the right sidebar. A tooltip saying `Keyboard Shortcuts(?)` has been added to the icon. The icon is positioned using `position: fixed`.
Fixes #8605.
Adds a link to the keyboard shortcuts popup at the bottom of the right
sidebar.
Current Version:
Alternative versions:
1.)
Keyboard-shortcuts
in black colour instead of the gray color ofsidebar-title
class.2.) only keyboard icon
3.) All user help links:
Testing Plan:
Manual testing