Skip to content

Paragraph margin can't be overridden by theme #1774

@bernharduw

Description

@bernharduw

Describe the bug
Paragraph margins can't be changed via theming because the m={0} value is always added after applying the theme. This was first fixed in #1476, but reintroduced by #1560.

To Reproduce
I created a sandbox in https://codesandbox.io/s/aged-silence-42b7m
See the output - all 4 paragraphs should have margins applied.

Expected behavior
Margins should be set to 0 by default. But no matter what method of styling you prefer, they should always be overrideable.

Screenshots
image

Additional context
It seems that margin:0 is set twice. Maybe it helps to remove the m={0} completely because it's set anyway.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    prereleaseThis change is available in a prerelease.releasedThis issue/pull request has been released.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions