We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ea2fd1 commit 2cd1d89Copy full SHA for 2cd1d89
1 file changed
src/block/posts/style.js
@@ -310,6 +310,19 @@ Image.addStyles( blockStyles, {
310
}
311
return selector
312
},
313
+ hoverSelectorCallback: getAttribute => {
314
+ const className = getAttribute( 'className' )
315
+ const blockStyle = getBlockStyle( variations, className )
316
+
317
+ if ( [ 'portfolio', 'portfolio-2' ].includes( blockStyle?.name ) ) {
318
+ return `${ itemSelector }:hover .stk-img-wrapper img`
319
+ }
320
321
+ if ( [ 'image-card' ].includes( blockStyle?.name ) ) {
322
+ return `.stk-block-posts__image-card-container:hover img`
323
324
+ return '.stk-img-wrapper:hover img'
325
+ },
326
widthStyleRuleCallback: getAttribute => {
327
const className = getAttribute( 'className' )
328
const blockStyle = getBlockStyle( variations, className )
0 commit comments