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: add padding less variable for Alert #38369

Merged
merged 2 commits into from
Nov 4, 2022

Conversation

madocto
Copy link
Contributor

@madocto madocto commented Nov 3, 2022

[中文版模板 / 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
  • Other (about what?)

🔗 Related issue link

close: #38346

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English add padding less variable for Alert
🇨🇳 Chinese Alert 增加 padding less 变量

☑️ 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

Sorry, something went wrong.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@github-actions
Copy link
Contributor

github-actions bot commented Nov 3, 2022

@github-actions
Copy link
Contributor

github-actions bot commented Nov 3, 2022

🚨 Hi @ImOctopus. Thanks for your contribution, as the default.less file is currently being upgraded, changes are not recommended.

🚨 你好,@ImOctopus。感谢你的贡献,由于 default.less 文件近期处于升级状态,不建议进行更改。

@@ -966,6 +966,8 @@
@alert-text-color: @text-color;
@alert-close-color: @text-color-secondary;
@alert-close-hover-color: @icon-color-hover;
@alert-padding-vertical: @padding-xs;
@alert-padding-horizontal: 15px;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
@alert-padding-horizontal: 15px;
@alert-padding-horizontal: @padding-sm - 1px;

Copy link
Member

Choose a reason for hiding this comment

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

ping

Copy link
Contributor Author

Choose a reason for hiding this comment

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

看是15px,是不是应该@padding-md - 1px

Copy link
Member

Choose a reason for hiding this comment

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

你是对的

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@codecov
Copy link

codecov bot commented Nov 3, 2022

Codecov Report

Base: 100.00% // Head: 100.00% // No change to project coverage 👍

Coverage data is based on head (818f9d3) compared to base (53c2be0).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##            master    #38369   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          446       446           
  Lines         8304      8304           
  Branches      2526      2526           
=========================================
  Hits          8304      8304           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@afc163 afc163 merged commit ad3c774 into ant-design:master Nov 4, 2022
@zombieJ zombieJ mentioned this pull request Nov 4, 2022
15 tasks
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.

Make Alert padding consumed from variables
2 participants