Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 100d3e3

Browse files
committed
Fix: TC typography - replace <p> padding by margin
This helps with correct margin collapsing when <p> blocks are nested into lists (and it is important for the content coming from CMS where users ability to work around arising layout problems is limited).
1 parent 3da218b commit 100d3e3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"lint:scss": "./node_modules/.bin/stylelint **/*.scss --syntax scss",
3333
"test": "npm run lint && npm run jest"
3434
},
35-
"version": "0.5.2",
35+
"version": "0.5.3",
3636
"dependencies": {
3737
"react": "^16.4.1",
3838
"react-css-super-themr": "^2.2.0",

src/styles/_mixins/typography.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@
215215
p {
216216
@include tc-body-md;
217217

218-
padding: 10px 0;
218+
margin: 10px 0;
219219
}
220220

221221
td,

0 commit comments

Comments
 (0)