fix: fixed colors for error input and labels on dark palette mode themes and dark controls. (https://github.com/woocommerce/woocommerce-blocks/pull/6292)
This commit is contained in:
parent
4aaaebe0c0
commit
ffbc39bfd3
|
@ -105,10 +105,25 @@
|
|||
&:focus {
|
||||
box-shadow: 0 0 0 1px $alert-red;
|
||||
}
|
||||
|
||||
.has-dark-controls &,
|
||||
.has-dark-controls &:hover,
|
||||
.has-dark-controls &:focus,
|
||||
.has-dark-controls &:active {
|
||||
border-color: color.adjust($alert-red, $lightness: 30%);
|
||||
}
|
||||
|
||||
.has-dark-controls &:focus {
|
||||
box-shadow: 0 0 0 1px color.adjust($alert-red, $lightness: 30%);
|
||||
}
|
||||
}
|
||||
|
||||
&.has-error label {
|
||||
color: $alert-red;
|
||||
|
||||
.has-dark-controls & {
|
||||
color: color.adjust($alert-red, $lightness: 30%);
|
||||
}
|
||||
}
|
||||
|
||||
&:only-child {
|
||||
|
|
|
@ -10,6 +10,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
.has-dark-mode-palette .wc-block-components-validation-error {
|
||||
color: color.adjust($alert-red, $lightness: 30%);
|
||||
}
|
||||
|
||||
.wc-block-components-select + .wc-block-components-validation-error {
|
||||
margin-bottom: $gap-large;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue