From 59f82e65ed617df09e57c4028bd251e1d6b12c6f Mon Sep 17 00:00:00 2001 From: Brion Date: Mon, 21 Oct 2024 12:53:56 +0530 Subject: [PATCH] chore(react): update colors for dark mode --- packages/react/src/components/TextField/text-field.scss | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/react/src/components/TextField/text-field.scss b/packages/react/src/components/TextField/text-field.scss index ff0fd7b7..6dc6b096 100644 --- a/packages/react/src/components/TextField/text-field.scss +++ b/packages/react/src/components/TextField/text-field.scss @@ -17,7 +17,11 @@ */ :root { - --oxygen-palette-ReadOnlyInput-bg: #e9ecef; + --oxygen-palette-ReadOnlyInput-bg: var(--oxygen-palette-grey-200); +} + +:root[data-mui-color-scheme="dark"] { + --oxygen-palette-ReadOnlyInput-bg: var(--oxygen-palette-grey-900); } .OxygenTextField-root {