1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

Ensure that the .toggleButton, as used in the findbar, always have visible hover/focus state (issue 19165)

Similar to the regular toolbarButtons that can be toggled, this ensure that it's always possible to tell when the findbar "buttons" are hovered/focused.
This commit is contained in:
Jonas Jenwald 2024-12-05 13:07:57 +01:00
parent 2ad8f6155c
commit 61e2eceff6

View file

@ -634,16 +634,16 @@ body {
.toggleButton {
display: inline;
&:is(:hover, :has(> input:focus-visible)) {
color: var(--toggled-btn-color);
background-color: var(--button-hover-color);
}
&:has(> input:checked) {
color: var(--toggled-btn-color);
background-color: var(--toggled-btn-bg-color);
}
&:is(:hover, :has(> input:focus-visible)) {
color: var(--toggled-btn-color);
background-color: var(--button-hover-color);
}
& > input {
position: absolute;
top: 50%;