mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Administration: Better targeting for required form field highlighting.
Previously, any `input` or `select` inside of a `.form-invalid` wrapper would get the red border highlighting, including submit buttons which was not visually correct. This now only applies to form elements with a class of `.form-required` inside of the `.form-invalid` wrapper. It also continues to apply the border to elements with both classes (`.form-invalid.form-required`) as that is how some of the admin markup is structured. Plugin authors may need to do the same sort of class application seen in this commit, i.e. add `.form-required` to certain form elements. Props sabernhardt, dilipbheda, helen. Fixes #50686. git-svn-id: https://develop.svn.wordpress.org/trunk@49283 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -238,10 +238,12 @@ textarea[readonly] {
|
||||
color: #72777c;
|
||||
}
|
||||
|
||||
.form-invalid input,
|
||||
.form-invalid input:focus,
|
||||
.form-invalid select,
|
||||
.form-invalid select:focus {
|
||||
.form-invalid .form-required,
|
||||
.form-invalid .form-required:focus,
|
||||
.form-invalid.form-required input,
|
||||
.form-invalid.form-required input:focus,
|
||||
.form-invalid.form-required select,
|
||||
.form-invalid.form-required select:focus {
|
||||
border-color: #dc3232 !important;
|
||||
box-shadow: 0 0 2px rgba(204, 0, 0, 0.8);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user