-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
E2E Tests: Fix theme colors and font sizes. (#18761)
* E2E Tests: Fix theme colors and font sizes. * Normalize Theme: Remove theme supports instead of overwriting them. * E2E Tests: Update to expect editor defaults for colors and font sizes.
- Loading branch information
Showing
5 changed files
with
28 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
/** | ||
* Plugin Name: Gutenberg Test Plugin, Normalize Theme | ||
* Plugin URI: https://github.com/WordPress/gutenberg | ||
* Author: Gutenberg Team | ||
* | ||
* @package gutenberg-test-normalize-theme | ||
*/ | ||
|
||
/** | ||
* Fixes colors and font sizes so that tests | ||
* are consistent across different themes. | ||
*/ | ||
function normalize_theme_init() { | ||
remove_theme_support( 'editor-color-palette' ); | ||
remove_theme_support( 'editor-font-sizes' ); | ||
} | ||
add_action( 'init', 'normalize_theme_init' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters