Skip to content

feat: 🎸 rename size tokens; add icon ui#172

Open
zhixinbao wants to merge 1 commit intosearchfe:mainfrom
zhixinbao:main
Open

feat: 🎸 rename size tokens; add icon ui#172
zhixinbao wants to merge 1 commit intosearchfe:mainfrom
zhixinbao:main

Conversation

@zhixinbao
Copy link
Copy Markdown

No description provided.

line-height: 0;
text-align: center;
text-transform: none;
text-rendering: optimizeLegibility;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

这个属性在图标这儿的作用是啥?我看文档说这个属性可能会有性能问题

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

参考了semi-icons,没怎么深究,不合适可以去掉:https://github.com/DouyinFE/semi-design/blob/main/packages/semi-icons/src/styles/icons.scss#L3-L11

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

我看是能增强易读性,但是说在移动设备上有性能问题,先去掉吧https://developer.mozilla.org/zh-CN/docs/Web/CSS/text-rendering#%E5%80%BC

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