File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -307,6 +307,19 @@ Image.addStyles( blockStyles, {
307307 }
308308 return selector
309309 } ,
310+ hoverSelectorCallback : getAttribute => {
311+ const className = getAttribute ( 'className' )
312+ const blockStyle = getBlockStyle ( variations , className )
313+
314+ if ( [ 'portfolio' , 'portfolio-2' ] . includes ( blockStyle ?. name ) ) {
315+ return `${ itemSelector } :hover .stk-img-wrapper img`
316+ }
317+
318+ if ( [ 'image-card' ] . includes ( blockStyle ?. name ) ) {
319+ return `.stk-block-posts__image-card-container:hover img`
320+ }
321+ return '.stk-img-wrapper:hover img'
322+ } ,
310323 widthStyleRuleCallback : getAttribute => {
311324 const className = getAttribute ( 'className' )
312325 const blockStyle = getBlockStyle ( variations , className )
You can’t perform that action at this time.
0 commit comments