From 7430041f7b41019a4baa9a98fde212811e0b22c3 Mon Sep 17 00:00:00 2001 From: IRBorisov <8611739+IRBorisov@users.noreply.github.com> Date: Mon, 4 Sep 2023 18:33:48 +0300 Subject: [PATCH] Fix input colors --- rsconcept/frontend/src/components/Help/InfoCstClass.tsx | 3 +-- rsconcept/frontend/src/components/Help/InfoCstStatus.tsx | 2 +- rsconcept/frontend/src/components/RSInput/index.tsx | 4 ++-- rsconcept/frontend/src/index.css | 4 ++-- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/rsconcept/frontend/src/components/Help/InfoCstClass.tsx b/rsconcept/frontend/src/components/Help/InfoCstClass.tsx index 055db95b..d63fce3e 100644 --- a/rsconcept/frontend/src/components/Help/InfoCstClass.tsx +++ b/rsconcept/frontend/src/components/Help/InfoCstClass.tsx @@ -17,9 +17,8 @@ function InfoCstClass({ title }: InfoCstClassProps) { return (

{info.text} diff --git a/rsconcept/frontend/src/components/Help/InfoCstStatus.tsx b/rsconcept/frontend/src/components/Help/InfoCstStatus.tsx index 0efe3d4a..0668d4df 100644 --- a/rsconcept/frontend/src/components/Help/InfoCstStatus.tsx +++ b/rsconcept/frontend/src/components/Help/InfoCstStatus.tsx @@ -17,7 +17,7 @@ function InfoCstStatus({ title }: InfoCstStatusProps) { return (

{info.text} diff --git a/rsconcept/frontend/src/components/RSInput/index.tsx b/rsconcept/frontend/src/components/RSInput/index.tsx index d238f596..956c6849 100644 --- a/rsconcept/frontend/src/components/RSInput/index.tsx +++ b/rsconcept/frontend/src/components/RSInput/index.tsx @@ -69,7 +69,7 @@ function RSInput({ theme: 'light', settings: { fontFamily: 'inherit', - background: editable ? colors.bgInput : colors.bgDisabled, + background: editable ? colors.bgInput : colors.bgDefault, foreground: colors.fgDefault, selection: colors.bgHover }, @@ -89,7 +89,7 @@ function RSInput({ theme: 'dark', settings: { fontFamily: 'inherit', - background: editable ? colors.bgInput : colors.bgDisabled, + background: editable ? colors.bgInput : colors.bgDefault, foreground: colors.fgDefault, selection: colors.bgHover }, diff --git a/rsconcept/frontend/src/index.css b/rsconcept/frontend/src/index.css index ceddcf15..296406c4 100644 --- a/rsconcept/frontend/src/index.css +++ b/rsconcept/frontend/src/index.css @@ -114,7 +114,8 @@ .clr-footer, .clr-modal-backdrop, .clr-btn-nav, - .clr-checkbox + .clr-checkbox, + .clr-input:disabled ) { background-color: var(--cl-bg-100); .dark & { @@ -162,7 +163,6 @@ } :is(.clr-disabled, - .clr-input, .clr-btn-default, .clr-btn-primary ):disabled {