Commit 245303c 1 parent 203673c commit 245303c Copy full SHA for 245303c
File tree 2 files changed +3
-14
lines changed
packages/fuselage/src/components/ToastBar
2 files changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ export type ToastBarProps = {
11
11
variant ?: 'info' | 'success' | 'error' ;
12
12
className ?: string ;
13
13
children ?: ReactNode ;
14
- size ?: string ;
15
14
time ?: number ;
16
15
id ?: string ;
17
16
onClose ?: ( id : string ) => void ;
@@ -21,7 +20,6 @@ export function ToastBar({
21
20
children,
22
21
className = '' ,
23
22
variant = 'info' ,
24
- size,
25
23
time = 5 ,
26
24
id,
27
25
onClose,
@@ -65,11 +63,7 @@ export function ToastBar({
65
63
66
64
return (
67
65
< Box className = { [ 'rcx-toastbar-wrapper' , toastBarAnimation ] } >
68
- < div
69
- className = { `rcx-toastbar rcx-toastbar--${ variant } ${
70
- size === 'large' ? 'rcx-toastbar--large' : ''
71
- } ${ className } `}
72
- >
66
+ < div className = { `rcx-toastbar rcx-toastbar--${ variant } ${ className } ` } >
73
67
< div className = 'rcx-toastbar-inner' >
74
68
< Icon size = 'x20' name = { iconName } />
75
69
< div className = 'rcx-toastbar-content' > { children } </ div >
Original file line number Diff line number Diff line change 3
3
@use ' ../../styles/typography.scss' ;
4
4
5
5
.rcx-toastbar {
6
+ position : relative ;
7
+
6
8
min-width : lengths .size (232 );
7
9
max-width : lengths .size (416 );
8
10
9
11
border-radius : lengths .border-radius (4 );
10
12
11
13
@include typography .use-font-scale (p2);
12
14
13
- & --large {
14
- max-width : lengths .size (360 );
15
- @include on-breakpoint (md) {
16
- max-width : lengths .size (580 );
17
- }
18
- }
19
-
20
15
& --info {
21
16
background-color : colors .neutral (100 );
22
17
}
You can’t perform that action at this time.
0 commit comments