From 3bfbcbe7d856fe7a9ff600dbdd93500bd21e6344 Mon Sep 17 00:00:00 2001 From: pablone Date: Fri, 1 Mar 2024 13:53:35 +0100 Subject: [PATCH] fix(searchBar): refs #6486 add contrast style on light theme searchBar --- src/components/ui/VnSearchbar.vue | 11 +++++------ src/css/app.scss | 3 ++- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/ui/VnSearchbar.vue b/src/components/ui/VnSearchbar.vue index 99710408d..f06b44334 100644 --- a/src/components/ui/VnSearchbar.vue +++ b/src/components/ui/VnSearchbar.vue @@ -81,8 +81,9 @@ onMounted(() => { }); async function search() { - const staticParams = Object.entries(store.userParams) - .filter(([key, value]) => value && (props.staticParams || []).includes(key)); + const staticParams = Object.entries(store.userParams).filter( + ([key, value]) => value && (props.staticParams || []).includes(key) + ); await arrayData.applyFilter({ params: { ...Object.fromEntries(staticParams), @@ -155,11 +156,9 @@ async function search() { .cursor-info { cursor: help; } - -.body--light #searchbar { +#searchbar { .q-field--standout.q-field--highlighted .q-field__control { - background-color: $grey-7; - color: #333; + background-color: var(--vn-text); } } diff --git a/src/css/app.scss b/src/css/app.scss index db4464bfc..c0c523a9f 100644 --- a/src/css/app.scss +++ b/src/css/app.scss @@ -4,7 +4,8 @@ body.body--light { --fount-color: black; --vn-sectionColor: #ffffff; - background-color: #e0e0e0; + --vn-pageColor: #e0e0e0; + background-color: var(--vn-pageColor); .q-header .q-toolbar { color: var(--fount-color); }