From 9f8eb99807dd5649c78538530714a180d9d1a176 Mon Sep 17 00:00:00 2001 From: Teng YANG Date: Mon, 1 Jun 2020 13:33:29 +0800 Subject: [PATCH] fix: #24614 text button style inconsistent in `danger` (#24622) * fix: update button style when type="text" of danger * update wording in danger button demo * format code --- .../__tests__/__snapshots__/demo.test.ts.snap | 52 ++++++++++++++----- components/button/demo/danger.md | 5 +- components/button/demo/disabled.md | 23 +++++--- components/button/style/index.less | 6 ++- components/button/style/mixin.less | 23 ++++++++ 5 files changed, 86 insertions(+), 23 deletions(-) diff --git a/components/button/__tests__/__snapshots__/demo.test.ts.snap b/components/button/__tests__/__snapshots__/demo.test.ts.snap index 83333b2081..b3b96ffd83 100644 --- a/components/button/__tests__/__snapshots__/demo.test.ts.snap +++ b/components/button/__tests__/__snapshots__/demo.test.ts.snap @@ -109,12 +109,20 @@ Array [ Dashed , + , , ] @@ -176,6 +184,24 @@ exports[`renders ./components/button/demo/disabled.md correctly 1`] = `
+ + +


Dashed + , mountNode, diff --git a/components/button/demo/disabled.md b/components/button/demo/disabled.md index 9242859f67..150511d443 100644 --- a/components/button/demo/disabled.md +++ b/components/button/demo/disabled.md @@ -31,14 +31,26 @@ ReactDOM.render( Dashed(disabled)
+ + +

- - + +
+ +
-
- -