fix(arr): make the provider reorder honest
`visibility: hidden` on the disabled reorder button left a control in the DOM that rendered as nothing. `disabled` already blocks the click and drops it out of the tab order, so the hiding was decoration; the shared `.control:disabled` colour says the same thing on screen, and the row does not reflow because the hidden button reserved its box anyway. Exposing it surfaced a second problem: `.control-quiet:hover` sits after `.control:disabled` at the same specificity, so a disabled quiet control lit accent-bright under the cursor and invited a click that does nothing. Guarded with `:not(:disabled)` in the shared rule rather than on this one control. `refreshProviderEdges` found the buttons by `button:nth-of-type(1|2)`. Position in the row is not a contract — a third button would have quietly moved the edge logic onto the wrong control. They carry `data-move` now. Closes #255
This commit is contained in:
+4
-5
@@ -1093,7 +1093,10 @@ body {
|
||||
border-color: var(--line);
|
||||
}
|
||||
|
||||
.control-quiet:hover,
|
||||
/* `:not(:disabled)` because this rule sits after `.control:disabled` at the
|
||||
same specificity: without it a disabled quiet control lights accent-bright
|
||||
under the cursor and invites a click that does nothing (#255). */
|
||||
.control-quiet:hover:not(:disabled),
|
||||
.control-quiet[aria-expanded="true"] {
|
||||
color: var(--accent-bright);
|
||||
border-color: var(--accent);
|
||||
@@ -2407,7 +2410,3 @@ select.form-input {
|
||||
.provider-budget {
|
||||
width: 5.5rem;
|
||||
}
|
||||
|
||||
.provider-move:disabled {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user