File tree 2 files changed +8
-5
lines changed
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ export const StyledCutout = styled.div`
31
31
border-bottom-color: ${ ( { theme } ) => theme . borderLight } ;
32
32
33
33
pointer-events: none;
34
- ${ props => props . shadow && `box-shadow:${ insetShadow } ;` }
34
+ ${ props =>
35
+ props . theme . shadow && props . shadow && `box-shadow:${ insetShadow } ;` }
35
36
}
36
37
` ;
37
38
Original file line number Diff line number Diff line change @@ -64,8 +64,9 @@ export const createBorderStyles = ({
64
64
border-top-color : ${ ( { theme } ) => theme . borderDarkest } ;
65
65
border-right-color : ${ ( { theme } ) => theme . borderLightest } ;
66
66
border-bottom-color : ${ ( { theme } ) => theme . borderLightest } ;
67
- box-shadow : ${ props => props . shadow && `${ shadow } , ` } inset 1px 1px 0px
68
- 1px ${ ( { theme } ) => theme . borderDark } ,
67
+ box-shadow : ${ props =>
68
+ props . theme . shadow && props . shadow && `${ shadow } , ` }
69
+ inset 1px 1px 0px 1px ${ ( { theme } ) => theme . borderDark } ,
69
70
inset -1px -1px 0 1px ${ ( { theme } ) => theme . borderLight } ;
70
71
`
71
72
: css `
@@ -77,8 +78,9 @@ export const createBorderStyles = ({
77
78
windowBorders ? theme . borderLight : theme . borderLightest } ;
78
79
border-right-color : ${ ( { theme } ) => theme . borderDarkest } ;
79
80
border-bottom-color : ${ ( { theme } ) => theme . borderDarkest } ;
80
- box-shadow : ${ props => props . shadow && `${ shadow } , ` } inset 1px 1px 0px
81
- 1px
81
+ box-shadow : ${ props =>
82
+ props . theme . shadow && props . shadow && `${ shadow } , ` }
83
+ inset 1px 1px 0px 1px
82
84
${ ( { theme } ) =>
83
85
windowBorders ? theme . borderLightest : theme . borderLight } ,
84
86
inset -1px -1px 0 1px ${ ( { theme } ) => theme . borderDark } ;
You can’t perform that action at this time.
0 commit comments