Update keyboard shortcuts dialog & menu item to use 'keyboard' icon

Fixes #11767
pull/11772/head
rohitsrma 2024-03-16 15:42:36 +05:30 zatwierdzone przez LB (Ben Johnston)
rodzic 51152ebefc
commit dae51e1287
4 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -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)

Wyświetl plik

@ -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

Wyświetl plik

@ -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" %}

Wyświetl plik

@ -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