Always show the page editor title field’s border when the field is empty. Fix #9318 (#9719)

pull/9723/head
Thibaud Colas 2022-11-25 17:16:05 +00:00 zatwierdzone przez GitHub
rodzic ef8a970261
commit 713636a00e
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
3 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -13,6 +13,7 @@ Changelog
* Add ability to include `form_fields` as an APIField on `FormPage` (Sævar Öfjörð Magnússon, Suyash Singh, LB (Ben) Johnston)
* Ensure that images listings are more consistently aligned when there are fewer images uploaded (Theresa Okoro)
* Add more informative validation error messages for non-unique slugs within the admin interface and for programmatic page creation (Benjamin Bach)
* Always show the page editor title fields border when the field is empty (Thibaud Colas)
* Fix: Make sure workflow timeline icons are visible in high-contrast mode (Loveth Omokaro)
* Fix: Ensure authentication forms (login, password reset) have a visible border in Windows high-contrast mode (Loveth Omokaro)
* Fix: Ensure visual consistency between buttons and links as buttons in Windows high-contrast mode (Albina Starykova)

Wyświetl plik

@ -32,7 +32,9 @@
padding-inline-start: theme('spacing[1.5]');
margin-inline-start: calc(-1 * theme('spacing[1.5]'));
&:not(:hover, :focus, [aria-invalid='true']) {
// Avoid calling attention to the field _unless_ its in one of those states.
&:not(:hover, :focus, :placeholder-shown, [aria-invalid='true']) {
// Hide w/ transparency to preserve border size and show it in forced-colors mode.
border-color: transparent;
}
}

Wyświetl plik

@ -23,6 +23,7 @@ depth: 1
* Add ability to include [`form_fields` as an APIField](form_page_fields_api_field) on `FormPage` (Sævar Öfjörð Magnússon, Suyash Singh, LB (Ben) Johnston)
* Ensure that images listings are more consistently aligned when there are fewer images uploaded (Theresa Okoro)
* Add more informative validation error messages for non-unique slugs within the admin interface and for programmatic page creation (Benjamin Bach)
* Always show the page editor title fields border when the field is empty (Thibaud Colas)
### Bug fixes