Skip to content

Commit

Permalink
refactor(Alert): use inset box-shadow instead of border
Browse files Browse the repository at this point in the history
  • Loading branch information
kripod committed Jul 11, 2024
1 parent d56b7db commit 240c0cf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/Alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ export function Alert({ sentiment = "info", children }: AlertProps) {
<div
role="alert"
className={clsx(
"flex gap-x-2 rounded-2xl border p-4 text-base",
"flex gap-x-2 rounded-2xl p-4 text-base ring-1 ring-inset",
sentiment === "info" &&
"border-ui-info-300 bg-ui-info-100 text-ui-info-800",
"bg-ui-info-100 text-ui-info-800 ring-ui-info-300",
sentiment === "danger" &&
"border-ui-danger-300 bg-ui-danger-100 text-ui-danger-800",
"bg-ui-danger-100 text-ui-danger-800 ring-ui-danger-300",
sentiment === "success" &&
"border-ui-success-300 bg-ui-success-100 text-ui-success-800",
"bg-ui-success-100 text-ui-success-800 ring-ui-success-300",
sentiment === "warning" &&
"border-ui-warning-300 bg-ui-warning-100 text-ui-warning-800",
"bg-ui-warning-100 text-ui-warning-800 ring-ui-warning-300",
)}
>
<Icon className="size-6 flex-none" />
Expand Down

0 comments on commit 240c0cf

Please sign in to comment.