Skip to content

feat(Switch): support theme API#2584

Open
Wesley-0808 wants to merge 4 commits into
developfrom
wesley/feat/switch-enhance
Open

feat(Switch): support theme API#2584
Wesley-0808 wants to merge 4 commits into
developfrom
wesley/feat/switch-enhance

Conversation

@Wesley-0808

@Wesley-0808 Wesley-0808 commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

🤔 这个 PR 的性质是?

  • 日常 bug 修复
  • 新特性提交
  • 文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • CI/CD 改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他

🔗 相关 Issue

相关PRs

💡 需求背景和解决方案

📝 更新日志

  • fix(组件名称): 处理问题或特性描述 ...

  • 本条 PR 不需要纳入 Changelog

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

Copilot AI added 2 commits July 1, 2026 05:21
- Add `round` appearance: rectangular track with medium (6px) border-radius
  on the track and small (2px) border-radius on the handle
- Add `line` appearance: thin 4px track drawn via ::before pseudo-element
  with a full-height circle handle; suppresses active-state expansion animation
- Add CSS variables: @switch-round-track-border-radius,
  @switch-round-handle-border-radius, @switch-line-track-height,
  @switch-line-track-height-s
- Handle all sizes (l, default, s), states (hover, checked, loading, disabled)
  with correct CSS specificity for size variant overrides

Closes #2563
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

TDesign Component Repositories CI Test Open

Component Lint Test Build Preview
tdesign-vue 👀
tdesign-vue-next 👀
tdesign-react 👀
tdesign-mobile-vue 👀
tdesign-mobile-react 👀

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants