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:
Miguel Palhas
2026-08-25 22:33:40 +01:00
parent 20a3b2847b
commit 7798cbc3e6
2 changed files with 15 additions and 11 deletions
+4 -5
View File
@@ -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;
}