Skip to content

Commit

Permalink
fix: adjust classes and styles of variation picker for wp 6.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Arukuen committed Jul 7, 2024
1 parent 467cbb7 commit faf74ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 7 additions & 3 deletions src/components/variation-picker/editor.scss
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
.stk-variation-picker {
.block-editor-block-variation-picker__variations > li {
margin: 8px 20px 0 0;
}

.is-premium {
pointer-events: none;
~ span {
color: #888;
}
svg {
fill: #d8d8d8 !important;
}
}
.block-editor-block-variation-picker__variation svg {
width: 48px;
height: 48px;
* {
stroke: currentColor;
}
}
}
3 changes: 1 addition & 2 deletions src/components/variation-picker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,9 @@ const VariationPicker = props => {
{ variations.map( variation => (
<li key={ variation.name }>
<Button
variant="secondary"
variant="tertiary"
icon={ variation.pickerIcon || variation.icon }
iconSize={ 48 }
isSecondary
onClick={ () => onSelect( variation ) }
className={ classnames( 'block-editor-block-variation-picker__variation', {
'is-premium': variation.isPremium,
Expand Down

0 comments on commit faf74ac

Please sign in to comment.