Skip to content

Commit

Permalink
Remove inline styles for pattern icon
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Jul 4, 2023
1 parent 6c1870d commit 2d9b2de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 1 addition & 5 deletions packages/edit-site/src/components/page-patterns/grid-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,7 @@ export default function GridItem( { categoryId, composite, icon, item } ) {
) }
>
<span className="edit-site-patterns__pattern-lock-icon">
<Icon
style={ { fill: 'currentcolor' } }
icon={ lockSmall }
size={ 24 }
/>
<Icon icon={ lockSmall } size={ 24 } />
</span>
</Tooltip>
) }
Expand Down
4 changes: 4 additions & 0 deletions packages/edit-site/src/components/page-patterns/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@

.edit-site-patterns__pattern-lock-icon {
display: inline-flex;

svg {
fill: currentcolor;
}
}
}

Expand Down

0 comments on commit 2d9b2de

Please sign in to comment.