File tree 2 files changed +14
-10
lines changed
packages/fuselage/src/components/Callout
2 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,9 @@ export default {
37
37
} as ComponentMeta < typeof Callout > ;
38
38
39
39
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 >
41
43
) ;
42
44
43
45
export const Default = Template . bind ( { } ) ;
Original file line number Diff line number Diff line change 5
5
.rcx-callout {
6
6
display : flex ;
7
7
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 );
11
10
12
11
color : theme (' callout-color' , colors .font (default ));
13
12
14
13
border-radius : theme (' callout-border-radius' , lengths .border-radius (medium ));
15
14
16
- background-color : theme (' callout-background-color' , colors .surface ( neutral ));
15
+ background-color : theme (' callout-background-color' , colors .neutral ( 200 ));
17
16
18
17
& --type-info {
19
18
color : theme (' callout-color-info' , colors .status-font (on-info ));
55
54
flex-flow : column nowrap ;
56
55
flex : 1 1 0 ;
57
56
58
- margin-inline-start : lengths .margin (8 );
57
+ margin-inline-start : lengths .margin (12 );
59
58
60
59
@include typography .use-font-scale (c1);
60
+
61
+ > :nth-child (2 ) {
62
+ margin-block-start : lengths .margin (4 );
63
+ }
61
64
}
62
65
63
66
.rcx-callout__title {
64
- padding-block : lengths . padding ( 2 ) ;
67
+ white-space : nowrap ;
65
68
66
- @include typography .use-font-scale (c2 );
69
+ @include typography .use-font-scale (p2b );
67
70
@include typography .use-text-ellipsis ;
68
- white-space : nowrap ;
69
71
}
70
72
71
73
.rcx-callout__children {
72
74
display : block ;
73
75
74
- padding-block : lengths . padding ( 2 );
76
+ @include typography . use-font-scale (p2 );
75
77
}
You can’t perform that action at this time.
0 commit comments