Skip to content

Commit 30c357a

Browse files
authored
fix(ui5-input): Fix selection color and bg (#1954)
The selection color and bg-color variables used to be wrong. In Chrome and Safari these values fallback to their defaults and the bug is more difficult to be seen, but in FF the color and bg color become unset, and you cant see any selection with ctr+a or cmd+a. Fixes: #1951
1 parent 4a1be70 commit 30c357a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/main/src/themes/Input.css

+3-4
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,9 @@
6666
font-family: inherit;
6767
}
6868

69-
[inner-input]::selection,
70-
[inner-input]::-moz-selection {
71-
background: var(--sapSelected);
72-
color: var(--sapContent_contrastTextColor);
69+
[inner-input]::selection {
70+
background: var(--sapSelectedColor);
71+
color: var(--sapContent_ContrastTextColor);
7372
}
7473

7574
/* Input placeholder */

0 commit comments

Comments
 (0)