Skip to content

Commit

Permalink
reduce size of the newsletter email input
Browse files Browse the repository at this point in the history
  • Loading branch information
danilo-leal committed Jun 14, 2024
1 parent 71e5765 commit f04c4e3
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions docs/src/components/footer/EmailSubscribe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ export default function EmailSubscribe({ sx }: { sx?: SxProps<Theme> }) {
</FormLabel>
<Box
sx={{
display: 'flex',
flexDirection: { xs: 'column', sm: 'row' },
mt: 1,
gap: 1,
width: { xs: '100%', sm: 'auto' },
maxWidth: { xs: '100%', sm: 320 },
display: 'flex',
flexDirection: { xs: 'column', sm: 'row' },
gap: 1,
}}
>
<InputBase
Expand All @@ -110,23 +110,22 @@ export default function EmailSubscribe({ sx }: { sx?: SxProps<Theme> }) {
minWidth: 220,
borderRadius: '8px',
border: '1px solid',
borderColor: 'grey.200',
borderColor: 'grey.300',
bgcolor: '#FFF',
boxShadow: `inset 0 1px 2px ${
(theme.vars || theme).palette.grey[50]
}, 0 2px .5px ${alpha(theme.palette.grey[100], 0.5)}`,
'&:hover': {
borderColor: 'grey.300',
borderColor: 'grey.400',
boxShadow: `inset 0 1px 2px ${(theme.vars || theme).palette.grey[100]}`,
},
[`&.${inputBaseClasses.focused}`]: {
boxShadow: `0 0 0 3px ${(theme.vars || theme).palette.primary[200]}`,
boxShadow: `0 0 0 3px ${alpha(theme.palette.primary[500], 0.5)}`,
borderColor: 'primary.500',
},
[`& .${inputBaseClasses.input}`]: {
borderRadius: theme.shape.borderRadius,
py: 1,
px: 1.5,
px: 1,
},
}),
(theme) =>
Expand All @@ -141,13 +140,12 @@ export default function EmailSubscribe({ sx }: { sx?: SxProps<Theme> }) {
boxShadow: `inset 0 1px 2px ${(theme.vars || theme).palette.common.black}`,
},
[`&.${inputBaseClasses.focused}`]: {
boxShadow: `0 0 0 3px ${(theme.vars || theme).palette.primary[800]}`,
borderColor: 'primary.400',
},
}),
]}
/>
<Button variant="outlined" disabled={form.status === 'loading'} type="submit">
<Button variant="outlined" size="small" disabled={form.status === 'loading'} type="submit">
Subscribe
</Button>
</Box>
Expand Down

0 comments on commit f04c4e3

Please sign in to comment.