diff --git a/components/checkbox/style/mixin.less b/components/checkbox/style/mixin.less index 259dfb5def..50d9627851 100644 --- a/components/checkbox/style/mixin.less +++ b/components/checkbox/style/mixin.less @@ -57,10 +57,10 @@ &:after { @check-width: (@checkbox-size / 14) * 5px; @check-height: (@checkbox-size / 14) * 8px; - transform: rotate(45deg) scale(0); + transform: rotate(45deg) scale(0) translate(-50%, -50%); position: absolute; - left: (@checkbox-size - @check-width) / 2 - 0.5px * (@checkbox-size / 14); - top: (@checkbox-size - @check-height) / 2 - 2px * (@checkbox-size / 14); + top: 50%; + left: 21%; display: table; width: @check-width; height: @check-height; @@ -89,7 +89,7 @@ // 选中状态 .@{checkbox-prefix-cls}-checked .@{checkbox-inner-prefix-cls}:after { - transform: rotate(45deg) scale(1); + transform: rotate(45deg) scale(1) translate(-50%, -50%); position: absolute; display: table; border: 2px solid @checkbox-check-color; diff --git a/components/config-provider/__tests__/__snapshots__/components.test.js.snap b/components/config-provider/__tests__/__snapshots__/components.test.js.snap index 933b165a3c..ab0a4045b4 100644 --- a/components/config-provider/__tests__/__snapshots__/components.test.js.snap +++ b/components/config-provider/__tests__/__snapshots__/components.test.js.snap @@ -16398,7 +16398,6 @@ exports[`ConfigProvider components Upload configProvider 1`] = ` >