Skip to content

Commit

Permalink
fix: wrong margin when alert have no icon
Browse files Browse the repository at this point in the history
  • Loading branch information
theo-mesnil committed Nov 25, 2024
1 parent fe9d5fb commit 62c4e11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/Alert/docs/examples/overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Alert } from '@welcome-ui/alert'

const Example = () => {
return (
<Alert>
<Alert icon={null}>
Nunc laoreet egestas nulla, et dapibus sem malesuada in. Suspendisse eleifend accumsan
ultrices. Phasellus iaculis nisi sed dui ornare commodo. Nullam dapibus varius nibh a ornare.
</Alert>
Expand Down
1 change: 1 addition & 0 deletions packages/Alert/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ const AlertComponent = forwardRef<'div', AlertProps>(
return (
<S.Alert
data-testid={dataTestId}
icon={icon}
isFullWidth={isFullWidth}
ref={ref}
size={size}
Expand Down

0 comments on commit 62c4e11

Please sign in to comment.