-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: Load font family on atomic styles render [ED-18041] #30241
Conversation
tests/phpunit/elementor/modules/atomic-widgets/styles/test-styles-renderer.php
Outdated
Show resolved
Hide resolved
@@ -35,7 +35,14 @@ private function inject_global_classes( Post_CSS $post ) { | |||
|
|||
$css = Styles_Renderer::make( | |||
Plugin::$instance->breakpoints->get_breakpoints_config() | |||
)->render( $sorted_items->all() ); | |||
)->on_prop_transform( function($key, $value ) use ( &$post ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@StyleShit - why not extract this to a function?
$this->elements_manager_mock->method( 'get_element_types' )->willReturn( [] ); | ||
|
||
Plugin::$instance->kits_manager->create_new_kit( 'kit' ); | ||
$kit = Plugin::$instance->kits_manager->get_active_kit(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$kit = Plugin::$instance->kits_manager->get_active_kit(); | |
$kit = Plugin::$instance->kits_manager->get_active_id(); |
@@ -483,6 +483,7 @@ public function test_render__style_with_nested_background_image_transformers() { | |||
$this->assertNotEmpty( $css, 'CSS should not be empty' ); | |||
$this->assertMatchesSnapshot( $css ); | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it
but... revert?
); | ||
|
||
// Act. | ||
$post_css = $this->regenerate_kit_css(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you need it?
No description provided.