Skip to content

Commit

Permalink
πŸ’₯ Rename pd β†’ p props in space style
Browse files Browse the repository at this point in the history
  • Loading branch information
exah committed Apr 20, 2019
1 parent e5b3334 commit 9be0165
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
14 changes: 7 additions & 7 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,13 @@ Consistent `space` system for setting `margin`, or `padding`. Created with [spac
- `mb` β†’ `margin-bottom`
- `mx` β†’ `margin-left`, `margin-right`
- `my` β†’ `margin-top`, `margin-bottom`
- `pd` β†’ `padding`
- `pdl` β†’ `padding-left`
- `pdr` β†’ `padding-right`
- `pdt` β†’ `padding-top`
- `pdb` β†’ `padding-bottom`
- `pdx` β†’ `padding-left`, `padding-right`
- `pdy` β†’ `padding-top`, `padding-bottom`
- `p` β†’ `padding`
- `pl` β†’ `padding-left`
- `pr` β†’ `padding-right`
- `pt` β†’ `padding-top`
- `pb` β†’ `padding-bottom`
- `px` β†’ `padding-left`, `padding-right`
- `py` β†’ `padding-top`, `padding-bottom`

**`Number` values:**

Expand Down
16 changes: 8 additions & 8 deletions src/styles/space.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ export const padding = createSpaceStyles('padding')
* - `mb` β†’ `margin-bottom`
* - `mx` β†’ `margin-left`, `margin-right`
* - `my` β†’ `margin-top`, `margin-bottom`
* - `pd` β†’ `padding`
* - `pdl` β†’ `padding-left`
* - `pdr` β†’ `padding-right`
* - `pdt` β†’ `padding-top`
* - `pdb` β†’ `padding-bottom`
* - `pdx` β†’ `padding-left`, `padding-right`
* - `pdy` β†’ `padding-top`, `padding-bottom`
* - `p` β†’ `padding`
* - `pl` β†’ `padding-left`
* - `pr` β†’ `padding-right`
* - `pt` β†’ `padding-top`
* - `pb` β†’ `padding-bottom`
* - `px` β†’ `padding-left`, `padding-right`
* - `py` β†’ `padding-top`, `padding-bottom`
*
* **`Number` values:**
*
Expand Down Expand Up @@ -174,5 +174,5 @@ export const padding = createSpaceStyles('padding')

export const space = combineStyles(
createAliasSpaceStyles('m', 'margin'),
createAliasSpaceStyles('pd', 'padding')
createAliasSpaceStyles('p', 'padding')
)

0 comments on commit 9be0165

Please sign in to comment.