Browse Source

fix: segmented dark mode (#38582)

pull/38588/head
MadCcc 2 years ago
committed by GitHub
parent
commit
31a401ba1a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      components/segmented/style/index.tsx

9
components/segmented/style/index.tsx

@ -190,14 +190,15 @@ const genSegmentedStyle: GenerateStyle<SegmentedToken> = (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<SegmentedToken>(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)];
});

Loading…
Cancel
Save