From 9dcde5ab946c6e8c7a8b2aa2297727e9552ba505 Mon Sep 17 00:00:00 2001 From: gxvv Date: Sat, 13 Apr 2019 22:18:26 +0800 Subject: [PATCH 1/3] :lipstick: Remove the pointer events handler of loading circle button. --- components/button/style/index.less | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/components/button/style/index.less b/components/button/style/index.less index ef37197750..0bfea59dd3 100644 --- a/components/button/style/index.less +++ b/components/button/style/index.less @@ -107,14 +107,17 @@ } } + &&-loading { + position: relative; + pointer-events: none; + } + &&-loading::before { display: block; } &&-loading:not(&-circle):not(&-circle-outline):not(&-icon-only) { - position: relative; padding-left: 29px; - pointer-events: none; .@{iconfont-css-prefix}:not(:last-child) { margin-left: -14px; } From 0902bcd59afbaed8a73bf0394682768e571ac65b Mon Sep 17 00:00:00 2001 From: gxvv Date: Sat, 13 Apr 2019 22:18:44 +0800 Subject: [PATCH 2/3] :memo: Replace span to div in loading button doc. --- components/button/demo/loading.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/button/demo/loading.md b/components/button/demo/loading.md index cf18d4397e..3c4eb4d01a 100644 --- a/components/button/demo/loading.md +++ b/components/button/demo/loading.md @@ -32,7 +32,7 @@ class App extends React.Component { render() { return ( - +
@@ -49,7 +49,7 @@ class App extends React.Component {
); } } From 9d95429f9361d02b024154f2f65d1390766d0c78 Mon Sep 17 00:00:00 2001 From: gxvv Date: Sat, 13 Apr 2019 23:13:39 +0800 Subject: [PATCH 3/3] :camera_flash: Update button snapshot. --- components/button/__tests__/__snapshots__/demo.test.js.snap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/button/__tests__/__snapshots__/demo.test.js.snap b/components/button/__tests__/__snapshots__/demo.test.js.snap index b6494f78a6..711b95dd1d 100644 --- a/components/button/__tests__/__snapshots__/demo.test.js.snap +++ b/components/button/__tests__/__snapshots__/demo.test.js.snap @@ -606,7 +606,7 @@ exports[`renders ./components/button/demo/icon.md correctly 1`] = ` `; exports[`renders ./components/button/demo/loading.md correctly 1`] = ` - +
- +
`; exports[`renders ./components/button/demo/multiple.md correctly 1`] = `