From 31a401ba1a58ae866be9165337dea27305751565 Mon Sep 17 00:00:00 2001 From: MadCcc <1075746765@qq.com> Date: Tue, 15 Nov 2022 22:22:04 +0800 Subject: [PATCH] fix: segmented dark mode (#38582) --- components/segmented/style/index.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/components/segmented/style/index.tsx b/components/segmented/style/index.tsx index f78a4eeed2..bc55e74413 100644 --- a/components/segmented/style/index.tsx +++ b/components/segmented/style/index.tsx @@ -190,14 +190,15 @@ const genSegmentedStyle: GenerateStyle = (token: SegmentedToken) }; // ============================== Export ============================== -export default genComponentStyleHook('Segmented', token => { +export default genComponentStyleHook('Segmented', (token) => { const { lineWidthBold, lineWidth, colorTextLabel, colorText, colorFillSecondary, - colorBgContainer, + colorBgLayout, + colorBgElevated, } = token; const segmentedToken = mergeToken(token, { @@ -206,9 +207,9 @@ export default genComponentStyleHook('Segmented', token => { segmentedContainerPadding: lineWidthBold, labelColor: colorTextLabel, labelColorHover: colorText, - bgColor: colorFillSecondary, + bgColor: colorBgLayout, bgColorHover: colorFillSecondary, - bgColorSelected: colorBgContainer, + bgColorSelected: colorBgElevated, }); return [genSegmentedStyle(segmentedToken)]; });