fix: use colorTextHeading (#42839)

* fix: popconfirm title use colorTextHeading

* fix: notification and alert
pull/42858/head
MadCcc 2 years ago committed by GitHub
parent e2eab5d813
commit da4738febf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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<AlertToken> = (token: AlertToken): CSSO
alertPaddingHorizontal,
paddingMD,
paddingContentHorizontalLG,
colorTextHeading,
} = token;
return {
@ -108,7 +109,7 @@ export const genBaseStyle: GenerateStyle<AlertToken> = (token: AlertToken): CSSO
[`${componentCls}-message`]: {
display: 'block',
marginBottom: marginXS,
color: colorText,
color: colorTextHeading,
fontSize: fontSizeLG,
},

@ -45,6 +45,7 @@ const genNotificationStyle: GenerateStyle<NotificationToken> = (token) => {
lineHeight,
width,
notificationIconSize,
colorText,
} = token;
const noticeCls = `${componentCls}-notice`;
@ -111,6 +112,7 @@ const genNotificationStyle: GenerateStyle<NotificationToken> = (token) => {
[`${noticeCls}-description`]: {
fontSize,
color: colorText,
},
[`&${noticeCls}-closable ${noticeCls}-message`]: {

@ -19,6 +19,7 @@ const genBaseStyle: GenerateStyle<PopconfirmToken> = (token) => {
marginXS,
fontSize,
fontWeightStrong,
colorTextHeading,
} = token;
return {
@ -41,6 +42,7 @@ const genBaseStyle: GenerateStyle<PopconfirmToken> = (token) => {
[`${componentCls}-title`]: {
fontWeight: fontWeightStrong,
color: colorTextHeading,
'&:only-child': {
fontWeight: 'normal',

Loading…
Cancel
Save