Fix vertical alignement

Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
This commit is contained in:
Charles de Dreuille
2026-01-26 13:43:40 +00:00
parent f0943b0ce4
commit 2cf37dbc30
2 changed files with 11 additions and 1 deletions
@@ -35,6 +35,11 @@
/* Apply variables */
background-color: var(--alert-bg);
color: var(--alert-fg);
/* Center align when there's no description */
&[data-has-description='false'] {
align-items: center;
}
}
.bui-Alert[data-status='info'] {
@@ -66,12 +71,16 @@
display: flex;
align-items: center;
justify-content: center;
margin-top: 0.125rem;
svg {
width: 1rem;
height: 1rem;
}
/* Add slight top margin when there's a description for better alignment */
.bui-Alert[data-has-description='true'] & {
margin-top: 0.125rem;
}
}
.bui-AlertContent {
@@ -127,6 +127,7 @@ export const Alert = forwardRef(
className={classes.root}
ref={ref}
style={{ ...style, ...utilityStyle }}
data-has-description={description ? 'true' : 'false'}
{...dataAttributes}
{...restProps}
>