fix(web): add interactive hover/active states for buttons and links
This commit is contained in:
parent
ffe2d28921
commit
075e1850e5
@ -186,6 +186,17 @@ body {
|
|||||||
outline-offset: 2px;
|
outline-offset: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Interactive hover/active states */
|
||||||
|
button, [role="button"], a {
|
||||||
|
transition: opacity 0.15s ease, background-color 0.15s ease;
|
||||||
|
}
|
||||||
|
button:hover:not(:disabled), [role="button"]:hover:not(:disabled) {
|
||||||
|
opacity: 0.85;
|
||||||
|
}
|
||||||
|
button:active:not(:disabled), [role="button"]:active:not(:disabled) {
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
|
||||||
/* Skip-to-content link (keyboard accessibility) */
|
/* Skip-to-content link (keyboard accessibility) */
|
||||||
.skip-to-content {
|
.skip-to-content {
|
||||||
position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; z-index: 9999;
|
position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; z-index: 9999;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user