From 6c3775f142a97ffad476c82ecb2e5d314c22f63d Mon Sep 17 00:00:00 2001 From: Muaz Ahmad Date: Mon, 4 Nov 2024 13:36:57 +0500 Subject: [PATCH] Fix table and select background colors --- web/components/theme/AntdTheme.tsx | 7 +++++++ web/styles/antd-default.js | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/web/components/theme/AntdTheme.tsx b/web/components/theme/AntdTheme.tsx index b5e15a69e..256dbe781 100644 --- a/web/components/theme/AntdTheme.tsx +++ b/web/components/theme/AntdTheme.tsx @@ -25,6 +25,13 @@ export const AntdTheme: FC = ({ children }) => { contentBg: readCSSVar('--modal-content-bg'), colorIcon: readCSSVar('--modal-close-color'), }, + Table: { + rowSelectedBg: readCSSVar('--primary-color-active'), + rowSelectedHoverBg: readCSSVar('--primary-color-hover'), + }, + Select: { + optionSelectedBg: readCSSVar('--primary-color-active'), + }, Menu: { itemActiveBg: readCSSVar('--primary-color-active'), }, diff --git a/web/styles/antd-default.js b/web/styles/antd-default.js index fd08cc435..eece6afcd 100644 --- a/web/styles/antd-default.js +++ b/web/styles/antd-default.js @@ -15,6 +15,13 @@ const AntdDefaultCustomTokens = { contentBg: '#e2e8f0', colorIcon: '#e2e8f0', }, + Table: { + rowSelectedBg: '#6544e9', + rowSelectedHoverBg: '#7a5cf3', + }, + Select: { + optionSelectedBg: '#6544e9', + }, Menu: { itemActiveBg: '#6544e9', },