Introduce the concept of "secondary" (less prominent) action in action menu

and make delete/unpublish/lock/unlock "secondary"
pull/6257/head
Dan Braghis 2020-06-18 13:13:31 +01:00 zatwierdzone przez Matt Westcott
rodzic 1babf897f7
commit 97e78f4ade
2 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -16,6 +16,10 @@
float: left;
}
.action-secondary {
opacity: 0.8;
}
input[type=submit],
input[type=reset],
input[type=button],

Wyświetl plik

@ -170,6 +170,7 @@ class UnpublishMenuItem(ActionMenuItem):
label = _("Unpublish")
name = 'action-unpublish'
icon_name = 'download-alt'
classname = 'action-secondary'
def is_shown(self, request, context):
return (
@ -186,6 +187,7 @@ class DeleteMenuItem(ActionMenuItem):
name = 'action-delete'
label = _("Delete")
icon_name = 'bin'
classname = 'action-secondary'
def is_shown(self, request, context):
return (
@ -203,6 +205,7 @@ class LockMenuItem(ActionMenuItem):
label = _("Lock")
aria_label = _("Apply editor lock")
icon_name = 'lock'
classname = 'action-secondary'
template = 'wagtailadmin/pages/action_menu/lock_unlock_menu_item.html'
def is_shown(self, request, context):