fix: ghost button style (#31780)

* fix: Button ghost style broken when it is danger

* update snapshot
This commit is contained in:
afc163 2021-08-13 09:31:38 +08:00 committed by GitHub
parent d68818f1ae
commit ccf14fce68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 1 deletions

View File

@ -325,6 +325,14 @@ exports[`renders ./components/button/demo/ghost.md correctly 1`] = `
Dashed
</span>
</button>
<button
class="ant-btn ant-btn-primary ant-btn-background-ghost ant-btn-dangerous"
type="button"
>
<span>
Danger
</span>
</button>
</div>
`;

View File

@ -25,6 +25,9 @@ ReactDOM.render(
<Button type="dashed" ghost>
Dashed
</Button>
<Button type="primary" danger ghost>
Danger
</Button>
</div>,
mountNode,
);

View File

@ -195,7 +195,7 @@
margin-left: @margin-xs;
}
&-background-ghost {
&&-background-ghost {
color: @btn-default-ghost-color;
border-color: @btn-default-ghost-border;
&,