File tree Expand file tree Collapse file tree 1 file changed +17
-6
lines changed
components/buttons/SubmitButton Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,18 @@ const SubmitButton = styled.button`
33
33
font-size : 1.5rem ;
34
34
min-width : 16rem ;
35
35
padding : 0.5rem 2rem ;
36
+ //check props for button variations
37
+ ${ props =>
38
+ props . $buttonType === 'newsletter__button' ? NewsLetterButton : '' }
39
+ ` ) }
40
+
41
+ //media query mixins
42
+ ${ m . largeDesktop ( css `
43
+ //check props for button variations
44
+ ${ props =>
45
+ props . $buttonType === 'newsletter__button'
46
+ ? NewsLetterButtonLgDesktop
47
+ : '' }
36
48
` ) }
37
49
38
50
//check props for button variations
@@ -51,13 +63,12 @@ const NewsLetterButton = css`
51
63
color : ${ $darkBgColor } ;
52
64
border : 1px solid # {$darkBgColor };
53
65
}
66
+ ` ;
54
67
55
- //media query mixins
56
- ${ m . largeDesktop ( css `
57
- min-width : 12rem ;
58
- border-radius : 3rem ;
59
- padding : 0.7rem 0 ;
60
- ` ) }
68
+ const NewsLetterButtonLgDesktop = css `
69
+ min-width : 12rem ;
70
+ border-radius : 3rem ;
71
+ padding : 0.7rem 0 ;
61
72
` ;
62
73
63
74
export default { SubmitButton } ;
You can’t perform that action at this time.
0 commit comments