Skip to content

Commit f89e1bd

Browse files
gokselpirnalpinarkizilarslan
authored andcommitted
fix(Alert): content width
1 parent 70aa7a0 commit f89e1bd

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/components/Alert/Alert.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import Icon from '../Icon/Icon';
1111
import { IconNameType } from '../Icon/types';
1212
import theme, { Theme } from '../../theme';
1313
import { AlertIcon } from './AlertIcon';
14-
import { deviceWidth } from '../../utils/dimentions';
1514

1615
type AlertProps = React.ComponentProps<typeof Box> & {
1716
variant?: VariantProps<Theme, 'alertVariants'>['variant'];
@@ -51,7 +50,7 @@ const Alert = ({
5150

5251
return (
5352
<AlertContainer variant={variant} {...rest}>
54-
<Box p="m" flexDirection="row" width={deviceWidth - theme.spacing['2xl']}>
53+
<Box p="m" flexDirection="row">
5554
<Box pr="2xs">
5655
<AlertIcon variant={variant} icon={icon} />
5756
</Box>

src/components/Alert/__snapshots__/Alert.test.tsx.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ exports[`Alert should render alert correctly 1`] = `
2424
{
2525
"flexDirection": "row",
2626
"padding": 16,
27-
"width": 718,
2827
},
2928
]
3029
}

0 commit comments

Comments
 (0)