chore: unique Empty text color (#49408)

* chore: unique color

* test: update snapshot
This commit is contained in:
二货爱吃白萝卜 2024-06-14 11:58:52 +08:00 committed by GitHub
parent f56a4d6866
commit 9f2fb20358
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 10 additions and 6 deletions

View File

@ -1020,7 +1020,9 @@ exports[`renders components/empty/demo/customize.tsx extend context correctly 1`
<div <div
class="ant-empty-description" class="ant-empty-description"
> >
<span> <span
class="ant-typography"
>
Customize Customize
<a <a
href="#API" href="#API"

View File

@ -738,7 +738,9 @@ exports[`renders components/empty/demo/customize.tsx correctly 1`] = `
<div <div
class="ant-empty-description" class="ant-empty-description"
> >
<span> <span
class="ant-typography"
>
Customize Customize
<a <a
href="#API" href="#API"

View File

@ -1,14 +1,14 @@
import React from 'react'; import React from 'react';
import { Button, Empty } from 'antd'; import { Button, Empty, Typography } from 'antd';
const App: React.FC = () => ( const App: React.FC = () => (
<Empty <Empty
image="https://gw.alipayobjects.com/zos/antfincdn/ZHrcdLPrvN/empty.svg" image="https://gw.alipayobjects.com/zos/antfincdn/ZHrcdLPrvN/empty.svg"
imageStyle={{ height: 60 }} imageStyle={{ height: 60 }}
description={ description={
<span> <Typography.Text>
Customize <a href="#API">Description</a> Customize <a href="#API">Description</a>
</span> </Typography.Text>
} }
> >
<Button type="primary">Create Now</Button> <Button type="primary">Create Now</Button>

View File

@ -42,7 +42,7 @@ const genSharedEmptyStyle: GenerateStyle<EmptyToken> = (token): CSSObject => {
}, },
[`${componentCls}-description`]: { [`${componentCls}-description`]: {
color: token.colorText, color: token.colorTextDescription,
}, },
// 原来 &-footer 没有父子结构现在为了外层承担我们的hashId改成父子结果 // 原来 &-footer 没有父子结构现在为了外层承担我们的hashId改成父子结果