Skip to content
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

Merged
merged 23 commits into from
Feb 17, 2025

Conversation

Omerisra6
Copy link
Contributor

No description provided.

@@ -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 ) {
Copy link
Member

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();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$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 );
}

Copy link
Member

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();
Copy link
Member

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?

StyleShit
StyleShit previously approved these changes Feb 16, 2025
@Omerisra6 Omerisra6 merged commit a4d4f30 into elementor:main Feb 17, 2025
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants