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
This commit is contained in:
Stanley Thijssen 2019-07-20 19:57:52 +08:00 committed by 偏右
parent 06eb86c360
commit 5a32990874
2 changed files with 4 additions and 1 deletions

View File

@ -150,7 +150,6 @@
}
}
.@{checkbox-prefix-cls}-wrapper + span,
.@{checkbox-prefix-cls} + span {
padding-right: 8px;
padding-left: 8px;

View File

@ -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