From 5a32990874eff57d3a60bc4581b418a3facd0e93 Mon Sep 17 00:00:00 2001 From: Stanley Thijssen Date: Sat, 20 Jul 2019 19:57:52 +0800 Subject: [PATCH] fix: Styling issue where all spans next to a checkbox wrapper get a padding (#17752) * fix styling issue * Added padding for span only when there is a checkbox in front of it --- components/checkbox/style/mixin.less | 1 - components/table/style/index.less | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/components/checkbox/style/mixin.less b/components/checkbox/style/mixin.less index 2e7d5ea1f2..db430b0a3e 100644 --- a/components/checkbox/style/mixin.less +++ b/components/checkbox/style/mixin.less @@ -150,7 +150,6 @@ } } - .@{checkbox-prefix-cls}-wrapper + span, .@{checkbox-prefix-cls} + span { padding-right: 8px; padding-left: 8px; diff --git a/components/table/style/index.less b/components/table/style/index.less index a38292611e..7fcf3977b7 100644 --- a/components/table/style/index.less +++ b/components/table/style/index.less @@ -473,6 +473,10 @@ overflow: hidden; } + .@{ant-prefix}-checkbox-wrapper + span { + padding-left: 8px; + } + > .@{ant-prefix}-dropdown-menu > .@{ant-prefix}-dropdown-menu-item:last-child, > .@{ant-prefix}-dropdown-menu > .@{ant-prefix}-dropdown-menu-submenu:last-child