From 30c357a55b7d3ea8ab66f19f05b3c15df76d5461 Mon Sep 17 00:00:00 2001 From: ilhan orhan Date: Wed, 15 Jul 2020 09:55:55 +0300 Subject: [PATCH] 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: https://github.com/SAP/ui5-webcomponents/issues/1951 --- packages/main/src/themes/Input.css | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/main/src/themes/Input.css b/packages/main/src/themes/Input.css index fb32bc9f02e5..ec3669a5c667 100644 --- a/packages/main/src/themes/Input.css +++ b/packages/main/src/themes/Input.css @@ -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 */