From b3bea96e80fffe88e88c3d59e8e593551e67ac2c Mon Sep 17 00:00:00 2001 From: DiamondYuan <541832074@qq.com> Date: Wed, 24 Apr 2019 20:09:49 +0800 Subject: [PATCH] fix: Tree checkbox animation not correct (#16272) * fix: Tree checkbox animation not correct * fix: Tree checkbox animation not correct * fix: Tree checkbox animation not correct * chore: add comment --- components/tree/style/index.less | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/components/tree/style/index.less b/components/tree/style/index.less index f806b2d6f1..0086daa36f 100644 --- a/components/tree/style/index.less +++ b/components/tree/style/index.less @@ -11,6 +11,15 @@ .antCheckboxFn(@checkbox-prefix-cls: ~'@{ant-prefix}-tree-checkbox'); .@{tree-prefix-cls} { + /* see https://github.com/ant-design/ant-design/issues/16259 */ + &-checkbox-checked::after { + position: absolute; + top: 16.67%; + left: 0; + width: 100%; + height: 66.67%; + } + .reset-component; margin: 0;