Make radio buttons / checkboxes display vertically under Django 4.0

Fixes #8190
Django 4 changed the rendering of radio button / checkbox lists to nested divs rather than ul/li - see 5942ab5eb1. This change simply applies the existing li styles to second-level divs.
pull/9055/head
Matt Westcott 2022-05-06 11:04:36 +01:00
rodzic f3e10a8f35
commit e125bd6578
3 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -8,6 +8,7 @@ Changelog
* Fix: Specific snippets list language picker was not properly styled (Sage Abdullah)
* Fix: Ensure the upgrade notification request for the latest release, which can be disabled via the `WAGTAIL_ENABLE_UPDATE_CHECK` sends the referrer origin with `strict-origin-when-cross-origin` (Karl Hobley)
* Fix: Fix misaligned spinner icon on page action button (LB (Ben Johnston))
* Fix: Ensure radio buttons / checkboxes display vertically under Django 4.0 (Matt Westcott)
3.0 (16.05.2022)

Wyświetl plik

@ -287,7 +287,11 @@ label.required:after {
.model_multiple_choice_field .input li,
.checkbox_select_multiple .input li,
.multiple_choice_field .input li,
.choice_field .input li {
.choice_field .input li,
.model_multiple_choice_field .input > div > div,
.checkbox_select_multiple .input > div > div,
.multiple_choice_field .input > div > div,
.choice_field .input > div > div {
label {
display: inline-flex;
align-items: center;

Wyświetl plik

@ -15,3 +15,4 @@ depth: 1
* Specific snippets list language picker was not properly styled (Sage Abdullah)
* Ensure the upgrade notification request for the latest release, which can be disabled via the `WAGTAIL_ENABLE_UPDATE_CHECK` sends the referrer origin with `strict-origin-when-cross-origin` (Karl Hobley)
* Fix misaligned spinner icon on page action button (LB (Ben Johnston))
* Ensure radio buttons / checkboxes display vertically under Django 4.0 (Matt Westcott)