Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

Commit 7e81a92

Browse files
committed
fix: layout of actions for Alert component
1 parent 484cebd commit 7e81a92

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/components/Alert/Alert.tsx

+8-8
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ function Alert({
6161
<>
6262
{visible && (
6363
<div className={containerClasses.join(' ')}>
64-
<div className="flex space-x-4">
65-
{withIcon ? (
66-
<div className={__styles.variant[variant].icon}>
67-
{withIcon && icons[variant]}
68-
</div>
69-
) : null}
70-
{icon && icon}
64+
{withIcon ? (
65+
<div className={__styles.variant[variant].icon}>
66+
{withIcon && icons[variant]}
67+
</div>
68+
) : null}
69+
{icon && icon}
70+
<div className="flex flex-1 justify-between">
7171
<div>
7272
<h3
7373
className={[
@@ -79,8 +79,8 @@ function Alert({
7979
</h3>
8080
<div className={descriptionClasses.join(' ')}>{children}</div>
8181
</div>
82+
{actions}
8283
</div>
83-
{actions}
8484
{closable && (
8585
<button
8686
aria-label="Close alert"

src/lib/theme/defaultTheme.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ export default {
253253
alert: {
254254
base: `
255255
relative rounded border py-4 px-6
256-
flex justify-between space-x-4 items-start
256+
flex space-x-4 items-start
257257
`,
258258
header: 'block text-sm font-normal mb-1',
259259
description: `text-xs`,

0 commit comments

Comments
 (0)