Repository navigation
Conversation
Align size-s circle button with size-l by setting padding: 0 so size styles do not squeeze the icon. Refs: Tencent/tdesign-vue-next#7036
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
中文
问题
圆形小号 Button(
shape=circle+size=small)时,size-s 的 padding 覆盖了圆形按钮的padding: 0,导致图标被挤压。对应:Tencent/tdesign-vue-next#7036
修改
在
&--shape-circle的&.@{prefix}-size-s分支补充padding: 0;,与同结构size-l(及 square size-s)对齐。测试
common 仓无相关视觉 snapshot;已对照 size-l 最小改动(1 行)。
English
Problem
For circle + small Button, size-s padding overrides the circle
padding: 0and squeezes the icon.Related: Tencent/tdesign-vue-next#7036
Fix
Add
padding: 0under&--shape-circle/&.@{prefix}-size-s, matchingsize-l.Test
No dedicated visual snapshot in this repo; change mirrors existing size-l rule (1 line).