Skip to content

Commit

Permalink
Global Styles: enabled font appearence in global context (#27150)
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian authored Nov 20, 2020
1 parent ef2d393 commit 1862c62
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/class-wp-theme-json.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class WP_Theme_JSON {
*/
const GLOBAL_ARGS = array(
'supports' => array(
'__experimentalFontAppearance' => false,
'__experimentalFontAppearance' => true,
'__experimentalFontFamily' => true,
'__experimentalSelector' => self::GLOBAL_SELECTOR,
'__experimentalTextDecoration' => true,
Expand Down Expand Up @@ -882,7 +882,7 @@ function ( $element ) {
}

/**
* Returs the stylesheet that results of processing
* Returns the stylesheet that results of processing
* the theme.json structure this object represents.
*
* @return string Stylesheet.
Expand Down
8 changes: 8 additions & 0 deletions phpunit/class-wp-theme-json-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ function test_contexts_not_valid_are_skipped() {
'color',
'fontFamily',
'fontSize',
'fontStyle',
'fontWeight',
'lineHeight',
'textDecoration',
'textTransform',
Expand Down Expand Up @@ -92,6 +94,8 @@ function test_properties_not_valid_are_skipped() {
'color',
'fontFamily',
'fontSize',
'fontStyle',
'fontWeight',
'lineHeight',
'textDecoration',
'textTransform',
Expand Down Expand Up @@ -126,6 +130,8 @@ function test_metadata_is_attached() {
'color',
'fontFamily',
'fontSize',
'fontStyle',
'fontWeight',
'lineHeight',
'textDecoration',
'textTransform',
Expand Down Expand Up @@ -387,6 +393,8 @@ public function test_merge_incoming_data() {
'color',
'fontFamily',
'fontSize',
'fontStyle',
'fontWeight',
'lineHeight',
'textDecoration',
'textTransform',
Expand Down

0 comments on commit 1862c62

Please sign in to comment.