Skip to content

Using props m, p, mx, my, marginBottom etc. on <Text />, <Heading /> doesn't have any effect #895

Open
@hinok

Description

@hinok

Describe Your Environment

What version of Spectacle are you using? (can be found by running npm list spectacle)

What version of React are you using? (can be found by running npm list react)

What browser are you using?

chrome

What machine are you on?

macOS / macbook pro

Describe the Problem

https://codesandbox.io/s/simple-spectacle-example-ztd4b?file=/src/index.js

Using props m, mx, my, p, px, py doesn't work for <Text /> and <Heading />.

See generated CSS
Zrzut ekranu 2020-05-4 o 22 03 03
Zrzut ekranu 2020-05-4 o 22 04 05

Expected behavior:

It should change padding and margin.

Actual behavior:

padding and margin doesn't change or rules are overriden.

Additional Information

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✓ VerifiedOrg member or multiple community members can reproduce a given bug🐛 BugIssues or PRs that report or fix a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions