Hide yellow tag for no compatible with WCAG 2.0 on contrast ratio

pull/4982/head
afc163 8 years ago
parent fbb6cb007f
commit 54dde4f5bc

@ -86,14 +86,6 @@ exports[`test renders ./components/tag/demo/colorful.md correctly 1`] = `
orange
</span>
</div>
<div
class="ant-tag ant-tag-yellow"
data-show="true">
<span
class="ant-tag-text">
yellow
</span>
</div>
<div
class="ant-tag ant-tag-green"
data-show="true">
@ -153,14 +145,6 @@ exports[`test renders ./components/tag/demo/colorful.md correctly 1`] = `
orange-inverse
</span>
</div>
<div
class="ant-tag ant-tag-yellow-inverse"
data-show="true">
<span
class="ant-tag-text">
yellow-inverse
</span>
</div>
<div
class="ant-tag ant-tag-green-inverse"
data-show="true">

@ -27,7 +27,6 @@ ReactDOM.render(
<Tag color="pink">pink</Tag>
<Tag color="red">red</Tag>
<Tag color="orange">orange</Tag>
<Tag color="yellow">yellow</Tag>
<Tag color="green">green</Tag>
<Tag color="cyan">cyan</Tag>
<Tag color="blue">blue</Tag>
@ -37,7 +36,6 @@ ReactDOM.render(
<Tag color="pink-inverse">pink-inverse</Tag>
<Tag color="red-inverse">red-inverse</Tag>
<Tag color="orange-inverse">orange-inverse</Tag>
<Tag color="yellow-inverse">yellow-inverse</Tag>
<Tag color="green-inverse">green-inverse</Tag>
<Tag color="cyan-inverse">cyan-inverse</Tag>
<Tag color="blue-inverse">blue-inverse</Tag>

@ -18,9 +18,9 @@ Tag for categorizing or markuping.
| Property | Description | Type | Default |
|--------------|-----------------------|----------|--------------|
| color | The background color of Tag | string | - |
| color | The color of Tag | string | - |
| closable | Tag can be closed. | boolean | false |
| onClose | Callback when tag was closed | (e) => void| - |
| onClose | Callback when tag was closed | (e) => void | - |
| afterClose | Callback when closed animation is complete | () => void | - |
### Tag.CheckableTag

@ -17,8 +17,8 @@ title: Tag
### Tag
| 参数 | 说明 | 类型 | 默认值 |
|----------------|-------------------------------|------|--------|
| color | 标签背景色 | string | - |
|----------------|-------------------------------|------|-------|
| color | 标签色 | string | - |
| closable | 标签是否可以关闭 | boolean | false |
| onClose | 关闭时的回调 | (e) => void | - |
| afterClose | 关闭动画完成后的回调 | () => void | - |

Loading…
Cancel
Save