-
Notifications
You must be signed in to change notification settings - Fork 2.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
Fix hotkeys dialog having 2 scrollbars #6762
Conversation
Generate changelog in
|
fix hotkeys dialog having 2 scrollbarsBuild artifact links for this commit: documentation | landing | table | demoThis is an automated comment from the deploy-preview CircleCI job. |
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 cannot quite repro the before state on the current version of the docs with the scrollbars displayed side-by-side, although I do see two scrollbars overlapped on top of each other briefly and can confirm that scrolling doesn't work well because of the two scrollbars.
Instead of disabling the scroll container on DialogBody
, can you instead add a DialogBody
to the legacy implementation. Replacing this line with the actual component:
<div className={Classes.DIALOG_BODY}>{this.renderHotkeys()}</div> |
Then we could probably just remove these styles from the HOTKEY_COLUMN
class
blueprint/packages/core/src/components/hotkeys/_hotkeys.scss
Lines 27 to 28 in 0f8d6d9
max-height: 80vh; | |
overflow-y: auto; |
c2c6487
to
387163d
Compare
fix 2 scrollbarsBuild artifact links for this commit: documentation | landing | table | demoThis is an automated comment from the deploy-preview CircleCI job. |
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.
Thanks! I was able to confirm this by setting "Show scroll bars" to "Always" in macOS's System Settings.
Fixes #0000
Checklist
Changes proposed in this pull request:
Fix hotkey dialog having 2 scrollbars.
Reviewers should focus on:
Both
hotkey-column
anddialog-body-scroll-container
haveoverflow: auto
property. AddDialogBody
toHotkeysDialogLegacy
and removeoverflow: scroll
fromhotkey-column
.Screenshot