Skip to content

Commit

Permalink
fix(Alert): adjust styles when closable is true and inlineActions is set
Browse files Browse the repository at this point in the history
  • Loading branch information
sarkaaa committed Jul 31, 2024
1 parent 8bc6f92 commit 78b6841
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/orbit-components/src/Alert/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const ContentWrapper = ({
return (
<div
className={cx(
"flex min-h-[20px] items-center",
"min-h-icon-medium flex items-center",
!inlineActions && "w-full",
"[&_.orbit-list-item]:text-ink-dark [&_.orbit-text]:text-ink-dark [&_.orbit-heading]:text-ink-dark",
...alertDescendantClasses[type],
Expand Down Expand Up @@ -159,12 +159,13 @@ const Alert = (props: Props) => {
title && inlineActions ? "flex-row" : "flex-col",
!title && "items-center",
inlineActions && "justify-between",
inlineActions && closable && "mr-md",
)}
>
{title && (
<div
className={cx(
"text-ink-dark flex min-h-[20px] items-center font-bold",
"text-ink-dark min-h-icon-medium flex items-center font-bold",
!!children && (inlineActions ? "mb-0" : "mb-xxs"),
)}
>
Expand Down

0 comments on commit 78b6841

Please sign in to comment.