swarm-ui: three press targets show a hover state
The selection bar's link buttons, an expandable card's head and a toast all take the pointer cursor and gave no other sign. The links underline on hover and focus, the head tints its title, and the toast darkens its border.
This commit is contained in:
parent
73ef63a5e5
commit
bcb432caf4
3 changed files with 44 additions and 0 deletions
|
|
@ -26,6 +26,10 @@
|
|||
font: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
.agents-selection-link:hover:not(:disabled),
|
||||
.agents-selection-link:focus-visible {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.agents-selection-link:disabled {
|
||||
color: var(--muted);
|
||||
cursor: default;
|
||||
|
|
|
|||
|
|
@ -16,6 +16,9 @@
|
|||
outline: 2px solid var(--purple);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
.ui-expandable-head:not(.ui-expandable-head-static):hover .ui-expandable-title {
|
||||
color: var(--purple);
|
||||
}
|
||||
/* The placeholder head is not a control. */
|
||||
.ui-expandable-head-static {
|
||||
cursor: default;
|
||||
|
|
|
|||
|
|
@ -27,6 +27,12 @@
|
|||
color: var(--fg);
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
/* The three sides that carry no tone: the left bar keeps its colour. */
|
||||
.ui-toast:hover {
|
||||
border-top-color: var(--muted);
|
||||
border-right-color: var(--muted);
|
||||
border-bottom-color: var(--muted);
|
||||
}
|
||||
.ui-toast-info {
|
||||
border-left-color: var(--cyan);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue