Skip to content

Button组件在页面body的margin为0的情况下,设置top属性为百分比或者将其父元素使用flex等布局进行垂直方向的相对移动时,按钮图标和文字对齐失效。 #6628

@Logosww

Description

@Logosww
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

undefined

Environment

"vue": "3.2.4", ant-design-vue": "4.0.0-rc.5",

Reproduction link

Edit on CodeSandbox

Steps to reproduce

1、将body元素margin设为0。
2、对带有图标的Button组件进行垂直方向的百分比的相对移动(top, bottom, 父元素flex等),非CSS transform属性的位移。

What is expected?

Button组件图标和文字对齐。
image

What is actually happening?

Button组件图标和文字对齐失效。
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions