Skip to content

Conversation

@anlyyao
Copy link
Collaborator

@anlyyao anlyyao commented Nov 25, 2025

🤔 这个 PR 的性质是?

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

🔗 相关 Issue

相关 PRs

Tencent/tdesign-common#2339

💡 需求背景和解决方案

  • 引入 font token

以GridItem为例:
旧版提供 --td-grid-item-text-font-size + --td-grid-item-text-line-height 两个css vars 来支持自定义文本的字号和行高,在 0.21.0 废弃,并提供 --td-grid-item-text-font 来自定义文本的字号+行高+字重

📝 更新日志

  • ⚠️ chore: 改用 Font token,组件级 CSS Vars 有调整,涉及组件有:ActionSheetBadgeCalendarCascader 等 30+ 组件

  • ⚠️ chore: --td-xx-icon-font-size 统一更名为 --td-xx-icon-size,涉及组件有 ButtonCellDialogProgressSearchUpload,共计 6 个组件

  • fix(BackTop): 修复文本字重错误

  • fix(ColorPicker): 修复组件深色模式背景、边框、文本色错误

  • 本条 PR 不需要纳入 Changelog

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

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

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

@github-actions
Copy link
Contributor

github-actions bot commented Nov 25, 2025

完成

@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 25, 2025

Open in StackBlitz

npm i https://pkg.pr.new/tdesign-mobile-react@834

commit: efcec26

@anlyyao anlyyao merged commit 5321282 into develop Nov 26, 2025
8 checks passed
@anlyyao anlyyao deleted the style/font/token branch November 26, 2025 12:59
@github-actions github-actions bot mentioned this pull request Nov 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants