fix(message): Enables the message to support colorText (#41047)

This commit is contained in:
JiaQi 2023-03-05 16:39:43 +08:00 committed by GitHub
parent d7378a09ba
commit 673d8a029b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,6 +21,7 @@ const genMessageStyle: GenerateStyle<MessageToken> = (token) => {
componentCls, componentCls,
iconCls, iconCls,
boxShadow, boxShadow,
colorText,
colorBgElevated, colorBgElevated,
colorSuccess, colorSuccess,
colorError, colorError,
@ -69,6 +70,7 @@ const genMessageStyle: GenerateStyle<MessageToken> = (token) => {
{ {
[componentCls]: { [componentCls]: {
...resetComponent(token), ...resetComponent(token),
color: colorText,
position: 'fixed', position: 'fixed',
top: marginXS, top: marginXS,
width: '100%', width: '100%',