diff --git a/packages/block-library/src/heading/index.js b/packages/block-library/src/heading/index.js index 05a44aac9e1a90..4dd14230ae6b80 100644 --- a/packages/block-library/src/heading/index.js +++ b/packages/block-library/src/heading/index.js @@ -35,6 +35,7 @@ export const settings = { __unstablePasteTextInline: true, lightBlockWrapper: true, __experimentalColor: true, + __experimentalLineHeight: true, }, example: { attributes: { diff --git a/packages/block-library/src/heading/style.scss b/packages/block-library/src/heading/style.scss index 8eb03551e9c675..b9a64de5655ec6 100644 --- a/packages/block-library/src/heading/style.scss +++ b/packages/block-library/src/heading/style.scss @@ -1,12 +1,22 @@ +:root { + h1, + h2, + h3, + h4, + h5, + h6 { + background-color: var(--wp--color--background); + color: var(--wp--color--text); + line-height: var(--wp--typography--line-height); + } +} + h1, h2, h3, h4, h5, h6 { - background-color: var(--wp--color--background); - color: var(--wp--color--text); - &.has-background { padding: $block-bg-padding--v $block-bg-padding--h; }