Skip to content

Commit 4f2a2cb

Browse files
authored
fix(ui5-togglebutton): fix hover background on desktop (#2984)
1 parent 7fbc396 commit 4f2a2cb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/main/src/themes/ToggleButton.css

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
}
1818

1919
:host([design="Positive"][pressed][active]),
20-
:host([design="Positive"][pressed]:hover) {
20+
:host([design="Positive"][pressed]:not([active]):not([non-interactive]):not([_is-touch]):hover) {
2121
background: var(--sapButton_Accept_Selected_Hover_Background);
2222
}
2323

@@ -31,7 +31,7 @@
3131
}
3232

3333
:host([design="Negative"][pressed][active]),
34-
:host([design="Negative"][pressed]:hover) {
34+
:host([design="Negative"][pressed]:not([active]):not([non-interactive]):not([_is-touch]):hover) {
3535
background: var(--sapButton_Reject_Selected_Hover_Background);
3636
}
3737

@@ -42,14 +42,14 @@
4242
:host([design="Transparent"][pressed]),
4343
:host([design="Transparent"][pressed]:hover),
4444
:host([design="Emphasized"][pressed]),
45-
:host([design="Emphasized"][pressed]:hover) {
45+
:host([design="Emphasized"][pressed]:not([active]):not([non-interactive]):not([_is-touch]):hover) {
4646
background: var(--sapButton_Selected_Background);
4747
border-color: var(--sapButton_Selected_BorderColor);
4848
color: var(--sapButton_Selected_TextColor);
4949
outline-color: var(--sapContent_ContrastFocusColor);
5050
}
5151

5252
:host([pressed][active]),
53-
:host([pressed]:hover) {
53+
:host([pressed]:not([active]):not([non-interactive]):not([_is-touch]):hover) {
5454
background: var(--sapButton_Selected_Hover_Background);
5555
}

0 commit comments

Comments
 (0)