Skip to content

Commit 50c7d94

Browse files
authored
fix(fuselage): Callout Component Style Update (#862)
1 parent ce85b97 commit 50c7d94

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

packages/fuselage/src/components/Callout/Callout.stories.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ export default {
3737
} as ComponentMeta<typeof Callout>;
3838

3939
const Template: ComponentStory<typeof Callout> = (args) => (
40-
<Callout {...args}>This is a generic description.</Callout>
40+
<Callout {...args}>
41+
{args.children || 'This is a generic description.'}
42+
</Callout>
4143
);
4244

4345
export const Default = Template.bind({});

packages/fuselage/src/components/Callout/Callout.styles.scss

+11-9
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@
55
.rcx-callout {
66
display: flex;
77

8-
padding-block: lengths.padding(16);
9-
padding-inline-start: lengths.padding(16);
10-
padding-inline-end: lengths.padding(32);
8+
padding-block: lengths.padding(8);
9+
padding-inline: lengths.padding(16);
1110

1211
color: theme('callout-color', colors.font(default));
1312

1413
border-radius: theme('callout-border-radius', lengths.border-radius(medium));
1514

16-
background-color: theme('callout-background-color', colors.surface(neutral));
15+
background-color: theme('callout-background-color', colors.neutral(200));
1716

1817
&--type-info {
1918
color: theme('callout-color-info', colors.status-font(on-info));
@@ -55,21 +54,24 @@
5554
flex-flow: column nowrap;
5655
flex: 1 1 0;
5756

58-
margin-inline-start: lengths.margin(8);
57+
margin-inline-start: lengths.margin(12);
5958

6059
@include typography.use-font-scale(c1);
60+
61+
> :nth-child(2) {
62+
margin-block-start: lengths.margin(4);
63+
}
6164
}
6265

6366
.rcx-callout__title {
64-
padding-block: lengths.padding(2);
67+
white-space: nowrap;
6568

66-
@include typography.use-font-scale(c2);
69+
@include typography.use-font-scale(p2b);
6770
@include typography.use-text-ellipsis;
68-
white-space: nowrap;
6971
}
7072

7173
.rcx-callout__children {
7274
display: block;
7375

74-
padding-block: lengths.padding(2);
76+
@include typography.use-font-scale(p2);
7577
}

0 commit comments

Comments
 (0)