From 44351ed751b7e41b33fa1ff1817217870fc320ff Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Fri, 1 Mar 2019 17:07:54 -0500 Subject: [PATCH] Testing: Disable CSS animations without style dependency --- packages/e2e-tests/plugins/disable-animations.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/e2e-tests/plugins/disable-animations.php b/packages/e2e-tests/plugins/disable-animations.php index f13c2c9003a2d..16bc2635d2e24 100644 --- a/packages/e2e-tests/plugins/disable-animations.php +++ b/packages/e2e-tests/plugins/disable-animations.php @@ -11,8 +11,10 @@ * Enqueue CSS stylesheet disabling animations. */ function enqueue_disable_animations_stylesheet() { + wp_register_style( 'gutenberg-disable-animations', null, array() ); + wp_enqueue_style( 'gutenberg-disable-animations' ); $custom_css = '* { animation-duration: 0ms !important; }'; - wp_add_inline_style( 'wp-components', $custom_css ); + wp_add_inline_style( 'gutenberg-disable-animations', $custom_css ); } add_action( 'enqueue_block_editor_assets', 'enqueue_disable_animations_stylesheet' );