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: spin support three level backgound opacity #47778

Open
wants to merge 4 commits into
base: feature
Choose a base branch
from

Conversation

lcgash
Copy link
Contributor

@lcgash lcgash commented Mar 8, 2024

[English Template / 英文模板]

🤔 这个变动的性质是?

  • [ ✔️] 新特性提交
  • 日常 bug 修复
  • 站点、文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • TypeScript 定义更新
  • 包体积优化
  • 性能优化
  • 功能增强
  • 国际化改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 工作流程
  • 其他改动(是关于什么的改动?)

🔗 相关 Issue

目前设定的 spin 组件背景模糊度在有些业务场景下不满足,因此增加了支持。
效果在这里
image

💡 需求背景和解决方案

📝 更新日志

语言 更新描述
🇺🇸 英文 The spin component supports varying degrees of background sharpness
🇨🇳 中文 spin 组件支持不同程度的背景清晰度

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • [ ✔️] 文档已补充或无须补充
  • [ ✔️] 代码演示已提供或无须提供
  • [ ✔️] TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

Copy link

stackblitz bot commented Mar 8, 2024

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

Copy link
Contributor

github-actions bot commented Mar 8, 2024

Preview is ready

Copy link
Contributor

github-actions bot commented Mar 8, 2024

👁 Visual Regression Report for PR #47778 Passed ✅

🎯 Target branch: feature (5f1ac6c)
📖 View Full Report ↗︎

🎊 Congrats! No visual-regression diff found.

Copy link

codesandbox-ci bot commented Mar 8, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link

codecov bot commented Mar 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (5f1ac6c) to head (401477d).

Additional details and impacted files
@@            Coverage Diff            @@
##           feature    #47778   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          736       736           
  Lines        12638     12639    +1     
  Branches      3324      3324           
=========================================
+ Hits         12638     12639    +1     

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

@Wxh16144
Copy link
Member

效果不错 👍。新功能需要往 feature 分支合并,并且是 minor 版本。 markdown 选中语法 [x]


const SpinVisibilityies = ['soft', 'default', 'heavy'] as const;
export type SpinVisibility = (typeof SpinVisibilityies)[number];
const SpinVisibilityOpacity: Record<SpinVisibility, number> = {
Copy link
Member

Choose a reason for hiding this comment

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

这个不符合设计规范,建议是通过 Design Token 来实现并提供例子。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ack

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