From 28d21bf066f488526a32c91b3ab5f6735501bfc3 Mon Sep 17 00:00:00 2001 From: Sage Abdullah Date: Fri, 15 Dec 2023 14:45:37 +0000 Subject: [PATCH] Make styles for header buttons consistent --- client/scss/components/_button.scss | 4 ++-- .../wagtailadmin/pages/listing/_page_header_buttons.html | 2 +- .../templates/wagtailadmin/pages/page_listing_header.html | 2 +- .../templates/wagtailadmin/shared/headers/slim_header.html | 4 +++- wagtail/admin/widgets/button.py | 2 +- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/client/scss/components/_button.scss b/client/scss/components/_button.scss index a1b5a2e2ee..15bc01492e 100644 --- a/client/scss/components/_button.scss +++ b/client/scss/components/_button.scss @@ -325,8 +325,8 @@ display: flex; align-items: center; justify-content: center; - width: theme('spacing.6'); - height: theme('spacing.6'); + width: theme('spacing.7'); + height: theme('spacing.slim-header'); appearance: none; color: theme('colors.text-button-outline-default'); padding: 0; diff --git a/wagtail/admin/templates/wagtailadmin/pages/listing/_page_header_buttons.html b/wagtail/admin/templates/wagtailadmin/pages/listing/_page_header_buttons.html index fba289f49e..066b8884d3 100644 --- a/wagtail/admin/templates/wagtailadmin/pages/listing/_page_header_buttons.html +++ b/wagtail/admin/templates/wagtailadmin/pages/listing/_page_header_buttons.html @@ -2,7 +2,7 @@ {% trans "Actions" as title %}