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: button component token #44090

Merged
merged 3 commits into from Aug 8, 2023
Merged

feat: button component token #44090

merged 3 commits into from Aug 8, 2023

Conversation

MadCcc
Copy link
Member

@MadCcc MadCcc commented Aug 7, 2023

[中文版模板 / Chinese template]

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / documentation update
  • Demo update
  • Component style update
  • TypeScript definition update
  • Bundle size optimization
  • Performance optimization
  • Enhancement feature
  • Internationalization
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Workflow
  • Other (about what?)

🔗 Related issue link

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English Migrate less variables of Button to Component Token.
🇨🇳 Chinese 迁移 Button less 变量到组件 Token。

☑️ Self-Check before Merge

⚠️ Please check all items below before requesting a reviewing. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

🚀 Summary

🤖 Generated by Copilot at 84fa6fc

This pull request refactors the button component style and token system to use more specific and consistent names, to separate the component token from the global and alias token, and to pass some token properties as arguments to the style functions. It also updates the documentation for the button component in both English and Chinese, and marks a deprecated property in the alias token interface. The files affected are components/button/style/group.ts, components/button/style/index.ts, docs/react/migrate-less-variables.en-US.md, docs/react/migrate-less-variables.zh-CN.md, and components/theme/interface/alias.ts.

🔍 Walkthrough

🤖 Generated by Copilot at 84fa6fc

  • Refactor the button component style and token system to use more specific and consistent token property names, and to separate the component token from the global and alias token (link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link)
  • Add a new parameter background to the genGhostButtonStyle function to pass the background color of the ghost button component as an argument, instead of using a fixed value (link, link, link, link, link, link, link)
  • Translate the table header from Chinese to English in the docs/react/migrate-less-variables.en-US.md file to provide a consistent and accurate documentation for the English version of the migration guide (link, link, link)
  • Add a new section for the button component in the docs/react/migrate-less-variables.en-US.md and docs/react/migrate-less-variables.zh-CN.md files to document the mapping between the less variables and the component token properties for the button component (link, link)

@stackblitz
Copy link

stackblitz bot commented Aug 7, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 7, 2023

@MadCcc MadCcc mentioned this pull request Aug 7, 2023
51 tasks
@github-actions
Copy link
Contributor

github-actions bot commented Aug 7, 2023

size-limit report 📦

Path Size
./dist/antd.min.js 387.11 KB (+233 B 🔺)
./dist/antd-with-locales.min.js 446.16 KB (+174 B 🔺)

@argos-ci
Copy link

argos-ci bot commented Aug 7, 2023

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) 🧿 Changes detected (Review) 2 changes Aug 8, 2023, 4:11 AM

@codecov
Copy link

codecov bot commented Aug 7, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (5351fac) 100.00% compared to head (7fcacb5) 100.00%.
Report is 16 commits behind head on feature.

Additional details and impacted files
@@            Coverage Diff            @@
##           feature    #44090   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          658       658           
  Lines        11191     11214   +23     
  Branches      3031      3040    +9     
=========================================
+ Hits         11191     11214   +23     
Files Changed Coverage Δ
components/button/style/group.ts 100.00% <100.00%> (ø)
components/button/style/index.ts 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

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

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.

None yet

3 participants