style: fix Typography Link color (#27104)

close #27088
This commit is contained in:
偏右 2020-10-12 16:24:26 +08:00 committed by GitHub
parent 18c4b085ba
commit 88fde9f9f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 7 deletions

View File

@ -59,6 +59,7 @@ exports[`renders ./components/typography/demo/basic.md correctly 1`] = `
<ul>
<li>
<a
class="ant-typography"
href="/docs/spec/proximity"
>
Principles
@ -66,6 +67,7 @@ exports[`renders ./components/typography/demo/basic.md correctly 1`] = `
</li>
<li>
<a
class="ant-typography"
href="/docs/pattern/navigation"
>
Patterns
@ -73,6 +75,7 @@ exports[`renders ./components/typography/demo/basic.md correctly 1`] = `
</li>
<li>
<a
class="ant-typography"
href="/docs/resource/download"
>
Resource Download
@ -160,6 +163,7 @@ exports[`renders ./components/typography/demo/basic.md correctly 1`] = `
<ul>
<li>
<a
class="ant-typography"
href="/docs/spec/proximity"
>
设计原则
@ -167,6 +171,7 @@ exports[`renders ./components/typography/demo/basic.md correctly 1`] = `
</li>
<li>
<a
class="ant-typography"
href="/docs/pattern/navigation"
>
设计模式
@ -174,6 +179,7 @@ exports[`renders ./components/typography/demo/basic.md correctly 1`] = `
</li>
<li>
<a
class="ant-typography"
href="/docs/resource/download"
>
设计资源

View File

@ -16,7 +16,7 @@ Display the document sample.
```jsx
import { Typography, Divider } from 'antd';
const { Title, Paragraph, Text } = Typography;
const { Title, Paragraph, Text, Link } = Typography;
ReactDOM.render(
<Typography>
@ -45,13 +45,13 @@ ReactDOM.render(
<Paragraph>
<ul>
<li>
<a href="/docs/spec/proximity">Principles</a>
<Link href="/docs/spec/proximity">Principles</Link>
</li>
<li>
<a href="/docs/pattern/navigation">Patterns</a>
<Link href="/docs/pattern/navigation">Patterns</Link>
</li>
<li>
<a href="/docs/resource/download">Resource Download</a>
<Link href="/docs/resource/download">Resource Download</Link>
</li>
</ul>
</Paragraph>
@ -81,13 +81,13 @@ ReactDOM.render(
<Paragraph>
<ul>
<li>
<a href="/docs/spec/proximity">设计原则</a>
<Link href="/docs/spec/proximity">设计原则</Link>
</li>
<li>
<a href="/docs/pattern/navigation">设计模式</a>
<Link href="/docs/pattern/navigation">设计模式</Link>
</li>
<li>
<a href="/docs/resource/download">设计资源</a>
<Link href="/docs/resource/download">设计资源</Link>
</li>
</ul>
</Paragraph>

View File

@ -22,6 +22,9 @@
&&-danger {
color: @error-color;
a&:hover {
color: ~`colorPalette('@{error-color}', 5) `;
}
}
&&-disabled {