mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 20:19:44 +08:00
fix: ghost button style (#31780)
* fix: Button ghost style broken when it is danger * update snapshot
This commit is contained in:
parent
d68818f1ae
commit
ccf14fce68
@ -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>
|
||||
`;
|
||||
|
||||
|
@ -25,6 +25,9 @@ ReactDOM.render(
|
||||
<Button type="dashed" ghost>
|
||||
Dashed
|
||||
</Button>
|
||||
<Button type="primary" danger ghost>
|
||||
Danger
|
||||
</Button>
|
||||
</div>,
|
||||
mountNode,
|
||||
);
|
||||
|
@ -195,7 +195,7 @@
|
||||
margin-left: @margin-xs;
|
||||
}
|
||||
|
||||
&-background-ghost {
|
||||
&&-background-ghost {
|
||||
color: @btn-default-ghost-color;
|
||||
border-color: @btn-default-ghost-border;
|
||||
&,
|
||||
|
Loading…
Reference in New Issue
Block a user