diff --git a/components/alert/style/index.ts b/components/alert/style/index.ts index 52aed213dd..74628f09ae 100644 --- a/components/alert/style/index.ts +++ b/components/alert/style/index.ts @@ -1,7 +1,7 @@ import type { CSSInterpolation, CSSObject } from '@ant-design/cssinjs'; +import { resetComponent } from '../../style'; import type { FullToken, GenerateStyle } from '../../theme/internal'; import { genComponentStyleHook, mergeToken } from '../../theme/internal'; -import { resetComponent } from '../../style'; export interface ComponentToken {} @@ -41,6 +41,7 @@ export const genBaseStyle: GenerateStyle = (token: AlertToken): CSSO alertPaddingHorizontal, paddingMD, paddingContentHorizontalLG, + colorTextHeading, } = token; return { @@ -108,7 +109,7 @@ export const genBaseStyle: GenerateStyle = (token: AlertToken): CSSO [`${componentCls}-message`]: { display: 'block', marginBottom: marginXS, - color: colorText, + color: colorTextHeading, fontSize: fontSizeLG, }, diff --git a/components/notification/style/index.tsx b/components/notification/style/index.tsx index 84b07dd6b0..c34335f8c6 100644 --- a/components/notification/style/index.tsx +++ b/components/notification/style/index.tsx @@ -45,6 +45,7 @@ const genNotificationStyle: GenerateStyle = (token) => { lineHeight, width, notificationIconSize, + colorText, } = token; const noticeCls = `${componentCls}-notice`; @@ -111,6 +112,7 @@ const genNotificationStyle: GenerateStyle = (token) => { [`${noticeCls}-description`]: { fontSize, + color: colorText, }, [`&${noticeCls}-closable ${noticeCls}-message`]: { diff --git a/components/popconfirm/style/index.tsx b/components/popconfirm/style/index.tsx index e62e1ba235..0f77bd6fee 100644 --- a/components/popconfirm/style/index.tsx +++ b/components/popconfirm/style/index.tsx @@ -19,6 +19,7 @@ const genBaseStyle: GenerateStyle = (token) => { marginXS, fontSize, fontWeightStrong, + colorTextHeading, } = token; return { @@ -41,6 +42,7 @@ const genBaseStyle: GenerateStyle = (token) => { [`${componentCls}-title`]: { fontWeight: fontWeightStrong, + color: colorTextHeading, '&:only-child': { fontWeight: 'normal',