Skip to content

Commit a69cffb

Browse files
committed
fix font size issue with Submit Button
converted all styles to js
1 parent e2f7955 commit a69cffb

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

components/buttons/SubmitButton/styles.js

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,18 @@ const SubmitButton = styled.button`
3333
font-size: 1.5rem;
3434
min-width: 16rem;
3535
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+
: ''}
3648
`)}
3749
3850
//check props for button variations
@@ -51,13 +63,12 @@ const NewsLetterButton = css`
5163
color: ${$darkBgColor};
5264
border: 1px solid #{$darkBgColor};
5365
}
66+
`;
5467

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;
6172
`;
6273

6374
export default { SubmitButton };

0 commit comments

Comments
 (0)