Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[Radio&Checkbox] 边框粗细不一致

Open Beginner friendly
#4,679 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@anlyyao is already working on this.

Since Oct 20, 2026.

  • #4680 by @anlyyao — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Domain
frontend

Research direction

Start by locating the Radio and Checkbox component styles and compare the border declarations described in the issue. Check how each component applies its circular icon border, then align the Checkbox border thickness and application method with Radio. Done means both icons show the same border thickness; verify the affected components in the mini-program.

Written by the indexing model from the issue text.

Description

🐞 bug
选择框架

No response

NPM 包版本

1.17.0

基础库调试库版本(如果出现问题的框架为 tdesign-miniprogram,请提供基础调试库版本)

No response

重现链接
Image
重现步骤

Radio 是 border: 3px solid var(--td-radio-icon-color,var(--td-component-border,var(--td-gray-color-4,#dcdcdc)))
Checkbox 是 border: calc(2px * 2) solid var(--td-checkbox-icon-color, var(--td-component-border, var(--td-gray-color-4, #dcdcdc)));

期望结果

既然 Checkbox 使用 Radio 一样的圆形图标,那就应该和 Radio 保持样式一致。

实际结果

Checkbox 的灰色边框会比 Radio 粗 1px

补充说明

另外 Radio 是通过 ::after 伪类应用的边框,而 Checkbox 是应用到元素本身。在小程序里2个组件完全可以用一套样式实现

Dominant language
Vue
Stars
1.8k
Forks
347
Avg merge
9h 27m
Merged PRs (30d)
17

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Tencent/tdesign-miniprogram

All issues in Tencent/tdesign-miniprogram

Similar issues

More Web Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.