Skip to content

Commit

Permalink
Make HotkeysDialog not inline (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmslewis authored Dec 16, 2016
1 parent 7a6fba3 commit 5bfdb47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion packages/core/src/components/hotkeys/hotkeysDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ class HotkeysDialog {
<Dialog
{...this.componentProps}
className={classNames(this.componentProps.className, "pt-hotkey-dialog")}
inline
isOpen={this.isDialogShowing}
onClose={this.hide}
>
Expand Down
3 changes: 2 additions & 1 deletion packages/core/test/hotkeys/hotkeysTests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ describe("Hotkeys", () => {
assertInputAllowsKeys("radio", true);
});

it("triggers hotkey dialog with \"?\"", (done) => {
it("triggers non-inline hotkey dialog with \"?\"", (done) => {
const TEST_TIMEOUT_DURATION = 30;

comp = mount(<TestComponent />, { attachTo });
Expand All @@ -124,6 +124,7 @@ describe("Hotkeys", () => {
// wait for the dialog to animate in
setTimeout(() => {
expect(document.querySelector(".pt-hotkey-column")).to.exist;
expect(document.querySelector(".pt-overlay-open").classList.contains("pt-overlay-inline")).to.be.false;
hideHotkeysDialog();
comp.detach();
attachTo.remove();
Expand Down

1 comment on commit 5bfdb47

@blueprint-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make HotkeysDialog not inline (#380)

Preview: docs
Coverage: core | datetime

Please sign in to comment.