fix(web): add interactive hover/active states for buttons and links
This commit is contained in:
parent
96b4453e95
commit
7ee0c6d481
@ -215,6 +215,17 @@ button {
|
||||
border-width: 0;
|
||||
}
|
||||
|
||||
/* 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 {
|
||||
position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; z-index: 9999;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user