-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: hard-coded colors to use variables instead #6340
feat: hard-coded colors to use variables instead #6340
Conversation
cytle
commented
Aug 29, 2023
- 已知写死颜色的组件改为使用 css var
- yellow、orange、wathet 3 个颜色之前主题中为定义,亮/暗主题补充增加了 3 个 css var
- 部分颜色未替换钉钉群中已同步
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## master #6340 +/- ##
==========================================
- Coverage 91.56% 91.56% -0.01%
==========================================
Files 306 306
Lines 6592 6590 -2
Branches 1627 1626 -1
==========================================
- Hits 6036 6034 -2
Misses 521 521
Partials 35 35 ☔ View full report in Codecov by Sentry. |
PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-6340.surge.sh |
src/components/badge/index.en.md
Outdated
@@ -26,6 +26,6 @@ It is suitable for reminders of productized new news, new functions, new service | |||
|
|||
| Name | Description | Default | Global | | |||
| --- | --- | --- | --- | | |||
| --color | The background color of the Badge | `#ff411c` | `--adm-badge-color` | | |||
| --color | The background color of the Badge | `var(--adm-color-danger)` | `--adm-badge-color` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个应该是 --color-highlight,然后 highlight 对应的是 danger~
* feat: hard-coded colors to use variables instead * chore: revert color in svg * doc(notice-bar): update default values of css var in the document * feat: add --adm-color-highlight css var to represent highlight color