Skip to content

Commit e5ddc4b

Browse files
committed
only hover on hover capable devices
1 parent 0ac4d37 commit e5ddc4b

3 files changed

Lines changed: 13 additions & 7 deletions

File tree

src/popup/Components/PopupItem.svelte

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@
1616
user-select: none;
1717
}
1818
19-
.item:hover {
20-
background-color: rgba(255, 255, 255, 0.075);
19+
@media (hover: hover) {
20+
.item:hover {
21+
background-color: rgba(255, 255, 255, 0.075);
22+
}
2123
}
2224
2325
.item:active {

src/shared/Components/Dropdown.svelte

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,11 @@
8282
pointer-events: none;
8383
}
8484
85-
ul :global(li:hover:not(.separator)) {
86-
background-color: var(--color-blue);
87-
color: var(--color-black);
85+
@media (hover: hover) {
86+
ul :global(li:hover:not(.separator)) {
87+
background-color: var(--color-blue);
88+
color: var(--color-black);
89+
}
8890
}
8991
9092
</style>

src/shared/Components/IconButton.svelte

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@
4545
width: 66.7%;
4646
}
4747
48-
button:hover :global(svg) {
49-
opacity: 1;
48+
@media (hover: hover) {
49+
button:hover :global(svg) {
50+
opacity: 1;
51+
}
5052
}
5153
</style>
5254

0 commit comments

Comments
 (0)