Skip to content

Commit

Permalink
fix(core): fix legacy alert styles (#1494)
Browse files Browse the repository at this point in the history
  • Loading branch information
Niznikr authored Nov 21, 2024
1 parent 10e69e9 commit 2e03be1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/silent-tools-film.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@launchpad-ui/alert": patch
"@launchpad-ui/core": patch
---

Fix legacy alert styles
1 change: 0 additions & 1 deletion packages/alert/src/Alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ const Alert = ({
role={['info', 'success', 'notification'].includes(kind) ? 'status' : 'alert'}
>
{!isInline && <div role="presentation" className={styles.bar} />}
<div role="presentation" className={styles.bar} />
{!noIcon && (
<StatusIcon
kind={kind}
Expand Down
2 changes: 1 addition & 1 deletion packages/alert/src/styles/Alert.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
margin-top: var(--lp-spacing-700);
}

.Alert.Alert--bordered .Alert-icon {
.Alert.Alert--bordered:has(.Alert-heading) .Alert-icon {
transform: translateY(2px);
}

Expand Down

0 comments on commit 2e03be1

Please sign in to comment.