Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkbox边框宽度不为1的时候,选中状态对勾会偏移 #46307

Closed
jkiss opened this issue Dec 7, 2023 · 7 comments · Fixed by #46431
Closed

Checkbox边框宽度不为1的时候,选中状态对勾会偏移 #46307

jkiss opened this issue Dec 7, 2023 · 7 comments · Fixed by #46431

Comments

@jkiss
Copy link

jkiss commented Dec 7, 2023

Reproduction link

Edit on CodeSandbox

Steps to reproduce

打开demo链接就能看到效果

What is expected?

Checkbox选中后,对勾是居中显示的

What is actually happening?

Checkbox选中后,对勾是偏右显示的

Environment Info
antd 5.12.1
React ^18
System MacOS 14.1.1
Browser Google Chrome 119.0.6045.199
@MadCcc
Copy link
Member

MadCcc commented Dec 7, 2023

改了边框宽度之后内容区域明显不够放了,可以自行调整一下 size。

@MadCcc MadCcc closed this as not planned Won't fix, can't repro, duplicate, stale Dec 7, 2023
@jkiss
Copy link
Author

jkiss commented Dec 7, 2023

啊。。。。。。

@afc163
Copy link
Member

afc163 commented Dec 7, 2023

@jkiss 你期望的效果是什么?

@jkiss
Copy link
Author

jkiss commented Dec 7, 2023

image

我期望这个白色的对勾能够上下左右居中😢 @afc163

@afc163
Copy link
Member

afc163 commented Dec 7, 2023

6px 的边框要怎么展现呢?

@jkiss
Copy link
Author

jkiss commented Dec 7, 2023

image

默认就这么展现就行,我这是为了复现这个问题,实际项目是2px

@jkiss
Copy link
Author

jkiss commented Dec 7, 2023

image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants