Skip to content

Commit

Permalink
fix(ui5-input): Fix selection color and bg (#1954)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ilhan007 authored Jul 15, 2020
1 parent 4a1be70 commit 30c357a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/main/src/themes/Input.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,9 @@
font-family: inherit;
}

[inner-input]::selection,
[inner-input]::-moz-selection {
background: var(--sapSelected);
color: var(--sapContent_contrastTextColor);
[inner-input]::selection {
background: var(--sapSelectedColor);
color: var(--sapContent_ContrastTextColor);
}

/* Input placeholder */
Expand Down

0 comments on commit 30c357a

Please sign in to comment.