[feat](trx-frontend-http): make the SQL label the squelch switch
Clicking SQL turns the squelch on and off. The label and the button beside it said the same thing twice — one naming the control, the other reading "On" or "Off" — where the name itself is the obvious target, and the dot already carries the state: grey when off, green while the gate passes, amber while it holds. The pressed state is on the label, so the switch reads the same to a screen reader as it looks. Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
@@ -1856,9 +1856,32 @@ small { color: var(--text-muted); }
|
||||
font-size: 0.82rem;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.sql-title {
|
||||
/* The name is the switch: one target instead of a label and a button that
|
||||
said the same thing twice, with the dot carrying the state. */
|
||||
.sql-toggle {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.3rem;
|
||||
height: 1.5rem;
|
||||
min-height: 0;
|
||||
padding: 0 0.4rem;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 4px;
|
||||
background: transparent;
|
||||
color: var(--text-muted);
|
||||
font-size: 0.82rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.02em;
|
||||
cursor: pointer;
|
||||
}
|
||||
.sql-toggle:hover {
|
||||
border-color: color-mix(in srgb, var(--border-light) 60%, transparent);
|
||||
color: var(--text);
|
||||
}
|
||||
.sql-toggle[aria-pressed="true"] {
|
||||
border-color: color-mix(in srgb, var(--accent-green) 50%, var(--border-light));
|
||||
background: color-mix(in srgb, var(--accent-green) 10%, transparent);
|
||||
color: var(--accent-text);
|
||||
}
|
||||
.sql-state {
|
||||
width: 0.5rem;
|
||||
|
||||
Reference in New Issue
Block a user