fix[ant-design#42120] use fontWeightStrong token for Typography.Text strong#54185
Conversation
…strong and tree title
|
|
📝 WalkthroughSummary by CodeRabbit
Walkthrough本次更改将部分组件中硬编码的字体粗细(fontWeight)替换为基于主题 token 的动态值。具体涉及树组件和排版组件,将原先的固定数值替换为 Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant ThemeProvider
participant TreeComponent
participant TypographyComponent
User->>ThemeProvider: 提供自定义 fontWeightStrong
ThemeProvider->>TreeComponent: 注入 token.fontWeightStrong
ThemeProvider->>TypographyComponent: 注入 token.fontWeightStrong
TreeComponent->>TreeComponent: 渲染节点,使用 token.fontWeightStrong
TypographyComponent->>TypographyComponent: 渲染 strong,使用 token.fontWeightStrong
Assessment against linked issues
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🧰 Additional context used📓 Path-based instructions (3)`**/*.{js,jsx,ts,tsx}`: Component should have a `ref` prop that provides an object with at least a `nativeElement: HTMLElement` and a `focus: VoidFunction`.
`components/*/style/**`: 每个组件的样式应该放在 style/ 目录下,样式文件应与组件结构保持一致。
`**/*.{ts,tsx}`: 所有组件和函数必须提供准确的类型定义。 避免使用 `any` 类型,尽可能精确地定义类型。 使用接口(interface)而非类型别名(type)定义对象结构。 导出所有公共接口类型,方便用户使用。 确保编译无任何类型错误或警告。 组件 props 应使用 interface 定义,便于扩展。 组件 props 接口命名应为...
🔇 Additional comments (2)
✨ Finishing Touches
🧪 Generate Unit Tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
👁 Visual Regression Report for PR #54185 Passed ✅
🎊 Congrats! No visual-regression diff found.
|
More templates
commit: |
Bundle ReportChanges will increase total bundle size by 60 bytes (0.0%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: antd.min-array-pushAssets Changed:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #54185 +/- ##
==========================================
Coverage ? 100.00%
==========================================
Files ? 774
Lines ? 14032
Branches ? 3717
==========================================
Hits ? 14032
Misses ? 0
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|



中文版模板 / Chinese template
🤔 This is a ...
🔗 Related Issues
fix #42120
💡 Background and Solution
fontWeight was hard coded for Typography.Text strong and Tree titles.
This fix replaces the hard coded value with the
fontWeightStrongtoken .📝 Change Log
fontWeightStrongtoken.fontWeightStrong标记