Skip to content

[bug]: Invalid CSS in Button component #2006

@EvgenyFil

Description

@EvgenyFil

What version of design-system are you using?

version: 2.2.0
browser: Chrome 145.0.7632.160

What's Wrong?

After update Strapi to 5.36.0 i've discovered invalid CSS-styles in Button-component:

Image

To Reproduce

The code of my plugin looks like:
<Button variant="secondary" fullWidth onClick={createNotification} disabled={loading || users.length === 0} style={{ marginTop: 16 }} >
I'm thinking that uncorrect behavior causes by the code in Button.tsx/ButtonWrapper after commit: 060d6e4

Expected Behaviour

CSS of ButtonWrapper are correct

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue: bugIssue reporting a bugstatus: pending reproductionWaiting for free time to reproduce the issue, or more information

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions