Skip to content

Commit

Permalink
Set defaultFontSizes to false.
Browse files Browse the repository at this point in the history
Use the new `defaultFontSizes` setting. We no longer need the `ThemeJson` class because its only purpose was to remove the Core default font sizes.

Fixed in Gutenberg: WordPress/gutenberg#58409
  • Loading branch information
justintadlock committed May 11, 2024
1 parent 2994892 commit 4b85d06
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 77 deletions.
1 change: 0 additions & 1 deletion src/Theme.php
Expand Up @@ -99,7 +99,6 @@ private function registerDefaultBindings(): void
$this->instance('media', new Media());
$this->instance('parts', new Parts());
$this->instance('templates', new Templates());
$this->instance('theme-json', new ThemeJson());
$this->instance('variations', new Variations());
}

Expand Down
76 changes: 0 additions & 76 deletions src/ThemeJson.php

This file was deleted.

1 change: 1 addition & 0 deletions theme.json
Expand Up @@ -869,6 +869,7 @@
},
"typography": {
"customFontSize": false,
"defaultFontSizes": false,
"dropCap": true,
"fluid": false,
"fontFamilies": [
Expand Down

0 comments on commit 4b85d06

Please sign in to comment.