Skip to content

Commit

Permalink
fix (wp 6.6): adjust classes and styles of variation picker for wp 6.6 (
Browse files Browse the repository at this point in the history
#3234)

* fix: adjust classes and styles of variation picker for wp 6.6

* fix: overwrite background of button, for 6.2 tertiary variant to be consistent

* tweaked some styling

---------

Co-authored-by: bfintal@gmail.com <>
  • Loading branch information
Arukuen committed Jul 13, 2024
1 parent 74db6d9 commit c4c940b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
25 changes: 20 additions & 5 deletions src/components/variation-picker/editor.scss
Original file line number Diff line number Diff line change
@@ -1,15 +1,30 @@
.stk-variation-picker {
.block-editor-block-variation-picker__variations {
gap: 16px;
}
.block-editor-block-variation-picker__variations > li {
margin: 0;
}
.stk-stackable-icon-gradient {
fill: revert !important;
}

.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;
.block-editor-block-variation-picker__variation {
background: #fff !important;
height: 42px;

svg {
width: 48px;
height: 48px;
}
}
}
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 c4c940b

Please sign in to comment.