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

给button添加block和shape=round的props后 block样式会被覆盖导致失效 #38866

Closed
jjlstruggle opened this issue Nov 22, 2022 · 0 comments · Fixed by #38869
Closed
Labels
🐛 Bug Ant Design Team had proved that this is a bug.

Comments

@jjlstruggle
Copy link
Contributor

Reproduction link

Edit on CodeSandbox

Steps to reproduce

同时给button组件添加block和shape=round即可,例如:

import { Button } from 'antd'

export default () => <div
          style={{
            backgroundColor: "deeppink"
          }}
        >
          <Button shape="round" block type="primary">
            Primary Button
          </Button>
        </div>

What is expected?

按钮填充满deeppink背景色的div

What is actually happening?

宽度自适应文字内容

Environment Info
antd 5.0.0
React 18.2.0
System window11
Browser chrome 107.0.5304.107
@MadCcc MadCcc added the 🐛 Bug Ant Design Team had proved that this is a bug. label Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Ant Design Team had proved that this is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants