mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +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
|
<div
|
||||||
class="ant-empty-description"
|
class="ant-empty-description"
|
||||||
>
|
>
|
||||||
<span>
|
<span
|
||||||
|
class="ant-typography"
|
||||||
|
>
|
||||||
Customize
|
Customize
|
||||||
<a
|
<a
|
||||||
href="#API"
|
href="#API"
|
||||||
|
@ -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"
|
||||||
|
@ -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>
|
||||||
|
@ -42,7 +42,7 @@ const genSharedEmptyStyle: GenerateStyle<EmptyToken> = (token): CSSObject => {
|
|||||||
},
|
},
|
||||||
|
|
||||||
[`${componentCls}-description`]: {
|
[`${componentCls}-description`]: {
|
||||||
color: token.colorText,
|
color: token.colorTextDescription,
|
||||||
},
|
},
|
||||||
|
|
||||||
// 原来 &-footer 没有父子结构,现在为了外层承担我们的hashId,改成父子结果
|
// 原来 &-footer 没有父子结构,现在为了外层承担我们的hashId,改成父子结果
|
||||||
|
Loading…
Reference in New Issue
Block a user