mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-29 18:50:00 +08:00
chore: unique Empty text color (#49408)
* chore: unique color * test: update snapshot
This commit is contained in:
parent
f56a4d6866
commit
9f2fb20358
@ -1020,7 +1020,9 @@ exports[`renders components/empty/demo/customize.tsx extend context correctly 1`
|
||||
<div
|
||||
class="ant-empty-description"
|
||||
>
|
||||
<span>
|
||||
<span
|
||||
class="ant-typography"
|
||||
>
|
||||
Customize
|
||||
<a
|
||||
href="#API"
|
||||
|
@ -738,7 +738,9 @@ exports[`renders components/empty/demo/customize.tsx correctly 1`] = `
|
||||
<div
|
||||
class="ant-empty-description"
|
||||
>
|
||||
<span>
|
||||
<span
|
||||
class="ant-typography"
|
||||
>
|
||||
Customize
|
||||
<a
|
||||
href="#API"
|
||||
|
@ -1,14 +1,14 @@
|
||||
import React from 'react';
|
||||
import { Button, Empty } from 'antd';
|
||||
import { Button, Empty, Typography } from 'antd';
|
||||
|
||||
const App: React.FC = () => (
|
||||
<Empty
|
||||
image="https://gw.alipayobjects.com/zos/antfincdn/ZHrcdLPrvN/empty.svg"
|
||||
imageStyle={{ height: 60 }}
|
||||
description={
|
||||
<span>
|
||||
<Typography.Text>
|
||||
Customize <a href="#API">Description</a>
|
||||
</span>
|
||||
</Typography.Text>
|
||||
}
|
||||
>
|
||||
<Button type="primary">Create Now</Button>
|
||||
|
@ -42,7 +42,7 @@ const genSharedEmptyStyle: GenerateStyle<EmptyToken> = (token): CSSObject => {
|
||||
},
|
||||
|
||||
[`${componentCls}-description`]: {
|
||||
color: token.colorText,
|
||||
color: token.colorTextDescription,
|
||||
},
|
||||
|
||||
// 原来 &-footer 没有父子结构,现在为了外层承担我们的hashId,改成父子结果
|
||||
|
Loading…
Reference in New Issue
Block a user