Tie invalidity indicator to regulator input

Invalid attempts to specify a regulator's set point are now local to
each view of the regulator, and don't affect the regulator model. In
particular, a regulator will be valid and in force even when one of its
regulator input views is showing an invalid specification attempt. The
invalidity indicator should therefore be tied to the input showing
the invalid specification, not to the whole regulator outline item.
This commit is contained in:
Aaron Fenyes 2025-02-18 13:37:30 -08:00
parent f2e84fb64a
commit c54b6bc165

View file

@ -163,7 +163,7 @@ details[open]:has(li) .element-switch::after {
font-style: normal;
}
.regulator:has(.invalid) > .status::after, details:has(.invalid):not([open]) .status::after {
.regulator-input.invalid + .status::after, details:has(.invalid):not([open]) .status::after {
content: '⚠';
color: var(--text-invalid);
}