Skip to content
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

Merged
merged 4 commits into from
Sep 6, 2023

Conversation

cytle
Copy link
Contributor

@cytle cytle commented Aug 29, 2023

  1. 已知写死颜色的组件改为使用 css var
  2. yellow、orange、wathet 3 个颜色之前主题中为定义,亮/暗主题补充增加了 3 个 css var
  3. 部分颜色未替换钉钉群中已同步

@codecov
Copy link

codecov bot commented Aug 29, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.01% ⚠️

Comparison is base (8a3f426) 91.56% compared to head (1e83088) 91.56%.
Report is 6 commits behind head on master.

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              

see 5 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions
Copy link
Contributor

PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-6340.surge.sh

@@ -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` |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个应该是 --color-highlight,然后 highlight 对应的是 danger~

@zombieJ zombieJ merged commit 62f23d8 into ant-design:master Sep 6, 2023
8 checks passed
cytle added a commit to cytle/ant-design-mobile that referenced this pull request Sep 11, 2023
* 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
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