remove redundant unbutton styles

- relates to #8790
pull/9080/head
PaarthAgarwal 2022-08-18 16:25:07 +05:30 zatwierdzone przez LB (Ben Johnston)
rodzic 04a4cc6b95
commit 1d5824dcc7
3 zmienionych plików z 2 dodań i 29 usunięć

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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