fix(Tabs): remove active text shadow#53617
Conversation
|
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 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:
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 #53617 Failed ❌
Warning There are more diffs not shown in the table. Please check the Full Report for details. Important There are 45 diffs found in this PR: 🔄
|
WalkthroughThis pull request removes the text-shadow effect used for simulating bold text in active tabs. The change aims to address issues with aesthetics, clarity on low-resolution screens, and the inability to mimic true boldness. The active state is now distinguished by color alone. Changes
|
| color: itemSelectedColor, | ||
| textShadow: token.tabsActiveTextShadow, | ||
| }, | ||
|
|
There was a problem hiding this comment.
The removal of textShadow: token.tabsActiveTextShadow is a style change aimed at improving aesthetics and clarity. Ensure that this change does not affect any functionality related to tab activation.
More templates
commit: |
Bundle ReportChanges will decrease total bundle size by 162 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 @@
## next #53617 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 783 783
Lines 14207 14207
Branches 3735 3735
=========================================
Hits 14207 14207 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|

























中文版模板 / Chinese template
🤔 This is a ...
🔗 Related Issues
💡 Background and Solution
Tabs 用 text-shadow 实现了一个伪加粗效果(目的是不改变宽度):

这种实现有几个问题:
此 PR 去掉了加粗效果,仅用颜色区分激活态:
市面上不加粗激活 Tab 的例子:
Google 搜索标签页
讨论过程
📝 Change Log