mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 16:06:28 +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
|
Dashed
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
|
<button
|
||||||
|
class="ant-btn ant-btn-primary ant-btn-background-ghost ant-btn-dangerous"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<span>
|
||||||
|
Danger
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
@ -25,6 +25,9 @@ ReactDOM.render(
|
|||||||
<Button type="dashed" ghost>
|
<Button type="dashed" ghost>
|
||||||
Dashed
|
Dashed
|
||||||
</Button>
|
</Button>
|
||||||
|
<Button type="primary" danger ghost>
|
||||||
|
Danger
|
||||||
|
</Button>
|
||||||
</div>,
|
</div>,
|
||||||
mountNode,
|
mountNode,
|
||||||
);
|
);
|
||||||
|
@ -195,7 +195,7 @@
|
|||||||
margin-left: @margin-xs;
|
margin-left: @margin-xs;
|
||||||
}
|
}
|
||||||
|
|
||||||
&-background-ghost {
|
&&-background-ghost {
|
||||||
color: @btn-default-ghost-color;
|
color: @btn-default-ghost-color;
|
||||||
border-color: @btn-default-ghost-border;
|
border-color: @btn-default-ghost-border;
|
||||||
&,
|
&,
|
||||||
|
Loading…
Reference in New Issue
Block a user