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: update design tokens for tag #116

Merged
merged 4 commits into from
Jun 12, 2024
Merged

Conversation

xdbobname
Copy link
Contributor

11.13.0

  • Adjust tokens for tags.

    • Add xs size, support 0.5px border.

@dls-tag-border-radius-s: @dls-border-radius-1;
@dls-tag-border-radius-m: @dls-border-radius-1;

@dls-tag-border-width: 1px;
@dls-tag-border-width-xs: 0.5px;
Copy link
Member

Choose a reason for hiding this comment

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

这里的逻辑是这样的,如果不同的 size 尺寸可能不一样,就得把 size 都枚举一遍,这里应该要 xs, s, m 都有。不带 size 后缀的可以保留来向前兼容。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

好的 !马上补上

@dls-tag-padding: @dls-padding-unit * 2;
@dls-tag-padding-xs: @dls-padding-unit * 1;
Copy link
Member

Choose a reason for hiding this comment

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

同上

@dls-tag-padding: @dls-padding-unit * 2;
@dls-tag-padding-xs: @dls-padding-unit * 1;
@dls-tag-prefix-icon-spacing: @dls-padding-unit * 1;
Copy link
Member

Choose a reason for hiding this comment

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

s, m 尺寸的有 icon 吗?间距也是这个吗?如果都没有定义的话不如直接在组件库实现里面特殊处理了。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

都有icon, 目前使用同样的间距

@Justineo Justineo merged commit 648dc76 into ecomfe:master Jun 12, 2024
2 checks passed
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