UX: hide keyboard shortcuts on mobile (#18575)
This commit is contained in:
parent
d1d0241d8b
commit
92bfea2f2b
|
@ -9,11 +9,13 @@
|
|||
@class="sidebar-footer-actions-button sidebar-footer-actions-toggle-mobile-view" />
|
||||
{{/if}}
|
||||
|
||||
<DButton
|
||||
@action={{route-action "showKeyboardShortcutsHelp"}}
|
||||
@title="keyboard_shortcuts_help.title"
|
||||
@icon="keyboard"
|
||||
@class="sidebar-footer-actions-button sidebar-footer-actions-keyboard-shortcuts" />
|
||||
{{#if this.site.desktopView}}
|
||||
<DButton
|
||||
@action={{route-action "showKeyboardShortcutsHelp"}}
|
||||
@title="keyboard_shortcuts_help.title"
|
||||
@icon="keyboard"
|
||||
@class="sidebar-footer-actions-button sidebar-footer-actions-keyboard-shortcuts" />
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -74,4 +74,14 @@ acceptance("Sidebar - Mobile - User with sidebar enabled", function (needs) {
|
|||
"displays the desktop icon for the button"
|
||||
);
|
||||
});
|
||||
|
||||
test("keyboard shortcuts button is hidden", async function (assert) {
|
||||
await visit("/");
|
||||
await click(".hamburger-dropdown");
|
||||
|
||||
assert.notOk(
|
||||
exists(".sidebar-footer-actions-keyboard-shortcuts"),
|
||||
"keyboard shortcuts button is not shown on mobile"
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue