Skip to content

Commit

Permalink
Update keyboard shortcuts dialog & menu item to use 'keyboard' icon
Browse files Browse the repository at this point in the history
Fixes #11767
  • Loading branch information
rohitsrma authored and lb- committed Mar 17, 2024
1 parent 51152eb commit dae51e1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Changelog
* Implement new universal listings design for image listing view (Sage Abdullah)
* Implement new universal listings design for document listing view (Sage Abdullah)
* Implement new universal listings design for site and locale listing views (Sage Abdullah)
* Add simple admin keyboard shortcuts overview dialog, available in the help sub-menu (Karthik Ayangar)
* Add simple admin keyboard shortcuts overview dialog, available in the help sub-menu (Karthik Ayangar, Rohit Sharma)
* Fix: Fix typo in `__str__` for MySQL search index (Jake Howard)
* Fix: Ensure that unit tests correctly check for migrations in all core Wagtail apps (Matt Westcott)
* Fix: Correctly handle `date` objects on `human_readable_date` template tag (Jhonatan Lopes)
Expand Down
2 changes: 1 addition & 1 deletion docs/releases/6.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ depth: 1
* Implement new universal listings design for document listing view (Sage Abdullah)
* Implement new universal listings design for site and locale listing views (Sage Abdullah)
* Added `AbstractGroupApprovalTask` to simplify [customizing behavior of custom `Task` models](../extending/custom_tasks) (John-Scott Atlakson)
* Add simple admin keyboard shortcuts overview dialog, available in the help sub-menu (Karthik Ayangar)
* Add simple admin keyboard shortcuts overview dialog, available in the help sub-menu (Karthik Ayangar, Rohit Sharma)


### Bug fixes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% load wagtailadmin_tags i18n %}
{% dialog icon_name="regex" classname="w-keyboard-shortcuts" id="keyboard-shortcuts-dialog" title=_("Keyboard shortcuts") %}
{% dialog icon_name="keyboard" classname="w-keyboard-shortcuts" id="keyboard-shortcuts-dialog" title=_("Keyboard shortcuts") %}
<table class="w-w-full">
<caption class="w-sr-only">
{% trans "All keyboard shortcuts" %}
Expand Down
2 changes: 1 addition & 1 deletion wagtail/admin/wagtail_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,7 @@ def register_keyboard_shortcuts_menu_item():

return MenuItem(
_("Shortcuts"),
icon_name="regex",
icon_name="keyboard",
order=1200,
attrs={
"role": "button", # Ensure screen readers announce this as a button
Expand Down

0 comments on commit dae51e1

Please sign in to comment.