FormidableLabs / FormidableLabs/spectacle

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

Open
#895 1 comment 0 reactions 0 assignees View on GitHub
✓ Verified 🐛 Bug
Dominant language
TypeScript
Stars
10.2k
Forks
700
PR merge metrics
No merged PRs in 30d

Description

### Describe Your Environment

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

```
spectacle@6.0.2
```

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

```
react@16.13.1
```

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 `` and ``.

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.