replace hard-coded colors for admin filters with variables

- fixes #7584
pull/7614/head
Noah Hall 2021-10-14 22:10:24 -04:00 zatwierdzone przez LB (Ben Johnston)
rodzic 29e6bbe79c
commit 300163b845
3 zmienionych plików z 8 dodań i 6 usunięć

Wyświetl plik

@ -72,6 +72,7 @@ Changelog
* Fix: Switch widgets on/off states are now visually different for high-contrast mode users (Sakshi Uppoor) * Fix: Switch widgets on/off states are now visually different for high-contrast mode users (Sakshi Uppoor)
* Fix: Nested InlinePanel usage no longer fails to save when creating two or more items (Indresh P, Rinish Sam, Anirudh V S) * Fix: Nested InlinePanel usage no longer fails to save when creating two or more items (Indresh P, Rinish Sam, Anirudh V S)
* Fix: Changed relation name used for admin commenting from `comments` to `wagtail_admin_comments` to avoid conflicts with third-party commenting apps (Matt Westcott) * Fix: Changed relation name used for admin commenting from `comments` to `wagtail_admin_comments` to avoid conflicts with third-party commenting apps (Matt Westcott)
* Fix: CSS variables are now correctly used for the filtering menu in modeladmin (Noah H)
2.14.2 (14.10.2021) 2.14.2 (14.10.2021)

Wyświetl plik

@ -97,6 +97,7 @@ Bug fixes
* Switch widgets on/off states are now visually different for high-contrast mode users (Sakshi Uppoor) * Switch widgets on/off states are now visually different for high-contrast mode users (Sakshi Uppoor)
* Nested InlinePanel usage no longer fails to save when creating two or more items (Indresh P, Rinish Sam, Anirudh V S) * Nested InlinePanel usage no longer fails to save when creating two or more items (Indresh P, Rinish Sam, Anirudh V S)
* Changed relation name used for admin commenting from ``comments`` to ``wagtail_admin_comments`` to avoid conflicts with third-party commenting apps (Matt Westcott) * Changed relation name used for admin commenting from ``comments`` to ``wagtail_admin_comments`` to avoid conflicts with third-party commenting apps (Matt Westcott)
* CSS variables are now correctly used for the filtering menu in modeladmin (Noah H)
Upgrade considerations Upgrade considerations
====================== ======================

Wyświetl plik

@ -95,8 +95,8 @@
vertical-align: middle; vertical-align: middle;
display: block; display: block;
background-color: #fff; background-color: #fff;
border: 1px solid #43b1b0; border: 1px solid $color-teal;
color: #43b1b0; color: $color-teal;
text-decoration: none; text-decoration: none;
text-transform: uppercase; text-transform: uppercase;
position: relative; position: relative;
@ -107,8 +107,8 @@
-moz-appearance: none; -moz-appearance: none;
&:hover { &:hover {
background-color: #358c8b; background-color: $color-teal-dark;
border-color: #358c8b; border-color: $color-teal-dark;
color: #fff; color: #fff;
} }
} }
@ -117,8 +117,8 @@
// stylelint-disable-next-line declaration-no-important // stylelint-disable-next-line declaration-no-important
color: #fff !important; color: #fff !important;
// stylelint-disable-next-line declaration-no-important // stylelint-disable-next-line declaration-no-important
border-color: #43b1b0 !important; border-color: $color-teal !important;
background-color: #43b1b0; background-color: $color-teal;
} }
} }