Skip to content

Commit

Permalink
fix (performance): remove old styles, use attributes.generatedCss (#3335
Browse files Browse the repository at this point in the history
)
  • Loading branch information
mxkae authored Oct 1, 2024
1 parent b52a06c commit d75bd85
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 280 deletions.
7 changes: 1 addition & 6 deletions src/block/icon-list/deprecated/save.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/**
* Internal dependencies
*/
import { IconListStyles } from './style'

/**
* External dependencies
*/
Expand Down Expand Up @@ -44,7 +39,7 @@ export const Save = props => {
attributes={ attributes }
version={ props.version }
>
<IconListStyles.Content version={ props.version } attributes={ attributes } />
{ attributes.generatedCss && <style>{ attributes.generatedCss }</style> }
<CustomCSS.Content attributes={ attributes } />
<Typography.Content
tagName={ tagName }
Expand Down
274 changes: 0 additions & 274 deletions src/block/icon-list/deprecated/style.js

This file was deleted.

0 comments on commit d75bd85

Please sign in to comment.