Skip to content

Commit

Permalink
feat: spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
charlielizzy committed Jul 30, 2024
1 parent f567d2f commit ac68462
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/atoms/InputRange/styles/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ const StyledButton = styled.button<InputRangeThemeProps>`
justify-content: center;
align-items: center;
border-radius: ${({ theme }: InputRangeThemeProps) => theme.inputRange?.button.borderRadius};
width: 32px;
height: 32px;
width: ${({ theme }: InputRangeThemeProps) => theme.inputRange?.button.mobileWidth};
height: ${({ theme }: InputRangeThemeProps) => theme.inputRange?.button.mobileHeight};
padding: 0;
${({ theme }) => theme.inputRange?.button.buttonStyle}
@media (min-width: ${grid.breakpoints.m}px) {
width: 50px;
height: 50px;
width: ${({ theme }: InputRangeThemeProps) => theme.inputRange?.button.width};
height: ${({ theme }: InputRangeThemeProps) => theme.inputRange?.button.height};
}
`;

Expand Down
8 changes: 8 additions & 0 deletions src/components/styles/Theme/ThemeProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ export interface InputRangeTheme {
borderRadius: string;
paddingMobile: string;
padding: string;
width: string;
height: string;
mobileWidth: string;
mobileHeight: string;
};
slider: {
lowerColor: string;
Expand Down Expand Up @@ -587,6 +591,10 @@ export const zopaTheme: AppTheme = {
borderRadius: '50%',
paddingMobile: '12px',
padding: '16px',
width: '50px',
height: '50px',
mobileWidth: '32px',
mobileHeight: '32px',
},
slider: {
lowerColor: colors.actionPlain,
Expand Down

0 comments on commit ac68462

Please sign in to comment.