From c54b6bc16599124f08686d52b3193422f140e2c9 Mon Sep 17 00:00:00 2001 From: Aaron Fenyes Date: Tue, 18 Feb 2025 13:37:30 -0800 Subject: [PATCH] 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. --- app-proto/main.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app-proto/main.css b/app-proto/main.css index 7ba1206..4726a27 100644 --- a/app-proto/main.css +++ b/app-proto/main.css @@ -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); }