[Glitch] Fix alignment of icon and text in Callout component

Port 87024b9e1cf7f0945eae457501899216d79c9073 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
diondiondion 2026-06-08 11:08:00 +02:00 committed by Claire
parent 2777b69db8
commit 4b24bc1c6d
3 changed files with 20 additions and 9 deletions

View File

@ -34,6 +34,15 @@ export const Default: Story = {
}, },
}; };
export const NoTitle: Story = {
args: {
title: '',
primaryLabel: '',
secondaryLabel: '',
onClose: undefined,
},
};
export const NoIcon: Story = { export const NoIcon: Story = {
args: { args: {
icon: false, icon: false,
@ -56,11 +65,11 @@ export const OnlyText: Story = {
}, },
}; };
// export const Subtle: Story = { export const Subtle: Story = {
// args: { args: {
// variant: 'subtle', variant: 'subtle',
// }, },
// }; };
export const Feature: Story = { export const Feature: Story = {
args: { args: {

View File

@ -7,6 +7,7 @@
color: var(--color-text-primary); color: var(--color-text-primary);
border-radius: 12px; border-radius: 12px;
font-size: 15px; font-size: 15px;
line-height: 1.3333;
} }
.icon { .icon {
@ -14,7 +15,7 @@
border-radius: 9999px; border-radius: 9999px;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
margin-top: -2px; margin-block: -2px;
} }
.content, .content,
@ -46,7 +47,7 @@
h3 { h3 {
font-weight: 500; font-weight: 500;
margin-bottom: 5px; margin-bottom: 3px;
} }
} }

View File

@ -456,6 +456,7 @@ $content-width: 840px;
color: var(--color-text-primary); color: var(--color-text-primary);
border-radius: 12px; border-radius: 12px;
font-size: 15px; font-size: 15px;
line-height: 1.3333;
margin-bottom: 30px; margin-bottom: 30px;
.icon { .icon {
@ -463,7 +464,7 @@ $content-width: 840px;
border-radius: 9999px; border-radius: 9999px;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
margin-top: -2px; margin-block: -2px;
background-color: var(--color-bg-brand-soft); background-color: var(--color-bg-brand-soft);
} }
@ -501,7 +502,7 @@ $content-width: 840px;
.title { .title {
font-weight: 600; font-weight: 600;
margin-bottom: 8px; margin-bottom: 6px;
font-size: inherit; font-size: inherit;
line-height: inherit; line-height: inherit;
} }