We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2afac6 commit e72b8e7Copy full SHA for e72b8e7
src/block-components/typography/deprecated.js
@@ -77,7 +77,9 @@ export const deprecateTypographyShadowColor = {
77
const getAttrName = getAttrNameFunction( attrNameTemplate )
78
const getAttribute = _attrName => attributes[ getAttrName( _attrName ) ]
79
80
- if ( getAttribute( 'textShadow' ) || getAttribute( 'textShadowHover' ) || getAttribute( 'textShadowParentHover' ) ) {
+ if ( ( getAttribute( 'textShadow' ) && getAttribute( 'textShadow' ).indexOf( 'rgba' ) !== -1 ) ||
81
+ ( getAttribute( 'textShadowHover' ) && getAttribute( 'textShadowHover' ).indexOf( 'rgba' ) !== -1 ) ||
82
+ ( getAttribute( 'textShadowParentHover' ) && getAttribute( 'textShadowParentHover' ).indexOf( 'rgba' ) ) ) {
83
return true
84
}
85
0 commit comments