Skip to content

Commit c221b3f

Browse files
committed
fix: border shadows
1 parent e80fb96 commit c221b3f

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

src/block-components/helpers/borders/deprecated.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ export const deprecateShadowColor = {
5656
const getAttrName = getAttrNameFunction( attrNameTemplate )
5757
const getAttribute = _attrName => attributes[ getAttrName( _attrName ) ]
5858

59-
if ( getAttribute( 'shadow' ) || getAttribute( 'shadowHover' ) || getAttribute( 'shadowParentHover' ) ) {
59+
if ( ( getAttribute( 'shadow' ) && getAttribute( 'shadow' ).indexOf( 'rgba' ) !== -1 ) ||
60+
( getAttribute( 'shadowHover' ) && getAttribute( 'shadowHover' ).indexOf( 'rgba' ) !== -1 ) ||
61+
( getAttribute( 'shadowParentHover' ) && getAttribute( 'shadowParentHover' ).indexOf( 'rgba' ) ) ) {
6062
return true
6163
}
6264

src/components/shadow-control/index.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ import { Button, Dashicon } from '@wordpress/components'
2525
export const getShadows = () => {
2626
return applyFilters( 'stackable.shadows', [
2727
'none',
28-
'0 0 0 1px rgba(120, 120, 120, 0.1)',
29-
'0 0 0 2px rgba(120, 120, 120, 0.1)',
30-
'0 5px 5px 0 rgba(18, 63, 82, 0.035)',
31-
'0px 2px 20px rgba(153, 153, 153, 0.2)',
32-
'0 5px 30px -10px rgba(18, 63, 82, 0.3)',
33-
'0px 10px 30px rgba(0, 0, 0, 0.05)',
34-
'7px 5px 30px rgba(72, 73, 121, 0.15)',
35-
'0px 10px 60px rgba(0, 0, 0, 0.1)',
36-
'0px 70px 90px -20px rgba(72, 73, 121, 0.30)',
28+
'0 0 0 1px #7878781a',
29+
'0 0 0 2px #7878781a',
30+
'0 5px 5px 0 #123f5209',
31+
'0px 2px 20px #99999933',
32+
'0 5px 30px -10px #123f524c',
33+
'0px 10px 30px #0000000d',
34+
'7px 5px 30px #48497926',
35+
'0px 10px 60px #0000001a',
36+
'0px 70px 90px -20px #4849794c',
3737
] )
3838
}
3939

0 commit comments

Comments
 (0)