WordPress/wp-content/themes
hellofromTonya 5e52fa8477 Bundled Themes: Support pullquote block typography options in Twenty Twenty-One.
Pullquotes were not inheriting the correct styling from the block
editor. This commit resolves the issue by supporting typography options.

1. The `font-family` variable remains on the paragraph (both editor and front) so the citation continues to use the body font even when the site redefines `var(--pullquote--font-family)`.

2. The `font-size`, `font-style`, `font-weight`, `letter-spacing` and `line-height` are set on the Pullquote block to allow overriding with the sidebar settings. Then the block's paragraph element inherits those styles.

3. When the settings do not give a custom `line-height` from the sidebar, these stylesheets set the paragraph to `var(--pullquote--line-height)` instead of inheriting 1.6 from the block styles. This patch uses `:where()` to avoid increasing specificity.

Moving styles from the paragraph element to the block should not affect the citation, which has had its own styles for `font-size`, `font-style`, `font-weight` and `letter-spacing`.

Follow-up to [56959], [56451], [55089], [55088], [49574], [49320], [49216].

Props sabernhardt, poena, darshitrajyaguru97, harshgajipara, shailu25, skyakash12.
Fixes #57854.
Built from https://develop.svn.wordpress.org/trunk@57631


git-svn-id: http://core.svn.wordpress.org/trunk@57132 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-02-13 21:24:10 +00:00
..
twentyeleven Twenty Eleven: Fix typo in twentyeleven_widgets_init() description. 2024-01-31 10:52:12 +00:00
twentyfifteen Bundled Themes: Cast font URL functions to string for add_editor_style(). 2024-02-12 21:48:08 +00:00
twentyfourteen Bundled Themes: Cast font URL functions to string for add_editor_style(). 2024-02-12 21:48:08 +00:00
twentynineteen Twenty Nineteen: Restore transition property to a single line. 2024-02-12 22:26:07 +00:00
twentyseventeen Bundled Themes: Cast font URL functions to string for add_editor_style(). 2024-02-12 21:48:08 +00:00
twentysixteen Bundled Themes: Cast font URL functions to string for add_editor_style(). 2024-02-12 21:48:08 +00:00
twentyten Build/Test Tools: Expand "imagemin" Grunt task to cover default themes. 2024-01-22 11:43:18 +00:00
twentythirteen Bundled Themes: Cast font URL functions to string for add_editor_style(). 2024-02-12 21:48:08 +00:00
twentytwelve Build/Test Tools: Expand "imagemin" Grunt task to cover default themes. 2024-01-22 11:43:18 +00:00
twentytwenty Twenty Twenty: Scope .privacy-policy styles to the footer only. 2024-02-12 11:33:05 +00:00
twentytwentyfour Twenty Twenty-Four: Wrap header navigation block in row. 2024-02-13 13:27:05 +00:00
twentytwentyone Bundled Themes: Support pullquote block typography options in Twenty Twenty-One. 2024-02-13 21:24:10 +00:00
twentytwentythree Twenty Twenty-Three: Include Latin-extended characters in DM Sans font files. 2024-02-13 08:55:17 +00:00
twentytwentytwo Twenty Twenty-Two: Prefix the pages block pattern category name. 2024-02-08 19:32:15 +00:00
index.php Remove closing PHP tags from the rest of index.php files in wp-content, for consistency with wp-content/index.php. 2014-06-05 15:59:14 +00:00