From 1d5824dcc796074ddfb98ab763646c83bba24e3f Mon Sep 17 00:00:00 2001 From: PaarthAgarwal Date: Thu, 18 Aug 2022 16:25:07 +0530 Subject: [PATCH] remove redundant unbutton styles - relates to #8790 --- CHANGELOG.txt | 1 + client/scss/components/_button.scss | 29 ----------------------------- docs/releases/4.1.md | 1 + 3 files changed, 2 insertions(+), 29 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 730279358b..e02c51974a 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -10,6 +10,7 @@ Changelog * Most images in the admin will now only load once they are visible on screen (Jake Howard) * Allow setting default attributes on image tags (Jake Howard) * Optimise the performance of the Wagtail userbar to remove duplicated queries, improving page loads when viewing live pages while signed in (Jake Howard) + * Remove legacy `unbutton` styling for buttons (Paarth Agarwal) * Fix: Prevent `PageQuerySet.not_public` from returning all pages when no page restrictions exist (Mehrdad Moradizadeh) diff --git a/client/scss/components/_button.scss b/client/scss/components/_button.scss index 220f99197b..aa1be7f441 100644 --- a/client/scss/components/_button.scss +++ b/client/scss/components/_button.scss @@ -171,35 +171,6 @@ margin-inline-start: 1em; } - // A completely unstyled button - &.unbutton { - border-radius: 0; - width: auto; - height: auto; - padding: 0; - font-size: inherit; - font-weight: normal; - vertical-align: middle; - display: inline; - background-color: transparent; - border: 0; - color: inherit; - text-decoration: none; - white-space: nowrap; - position: relative; - overflow: hidden; - box-sizing: border-box; - -webkit-font-smoothing: auto; - // stylelint-disable-next-line property-no-vendor-prefix - -moz-appearance: none; - - &:hover, - &:focus, - &:active { - background-color: transparent; - } - } - // stylelint-disable-next-line no-duplicate-selectors &:hover { background-color: $color-button-hover; diff --git a/docs/releases/4.1.md b/docs/releases/4.1.md index 6e3bb5445d..c578f13ddb 100644 --- a/docs/releases/4.1.md +++ b/docs/releases/4.1.md @@ -18,6 +18,7 @@ Wagtail 4.1 is designated a Long Term Support (LTS) release. Long Term Support r * Most images in the admin will now only load once they are visible on screen (Jake Howard) * Allow setting default attributes on image tags [](adding_default_attributes_to_images) (Jake Howard) * Optimise the performance of the Wagtail userbar to remove duplicated queries, improving page loads when viewing live pages while signed in (Jake Howard) + * Remove legacy `unbutton` styling for buttons (Paarth Agarwal) ### Bug fixes