Skip to content

Commit

Permalink
Make p tag "go with the flow". (#12998)
Browse files Browse the repository at this point in the history
This commit sets the `p` tag to inherit whatever `font-size` and `line-height` are set on the `body` i.e., `.editor-styles-wrapper`. 
Currently the `p` tag here overrides a theme's most basic of font styles unless `font-size` and `line-height` are set on `p` in that theme.
And from what I've seen, being that specific on `p` is an uncommon pattern.

This also makes it easier and requires less specificity to style paragraphs on a per block basis by simply adding the font-size to the block container.
  • Loading branch information
m-e-h authored and youknowriad committed Mar 6, 2019
1 parent 987c450 commit 6f734c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/editor/src/editor-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ body {
}

p {
font-size: $editor-font-size;
line-height: $editor-line-height;
font-size: inherit;
line-height: inherit;
}

ul,
Expand Down

0 comments on commit 6f734c7

Please sign in to comment.