File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ export function Alert({
27
27
buttonText,
28
28
buttonIcon,
29
29
buttonLink = false ,
30
+ fullWidth = false ,
30
31
isFlash = false ,
31
32
onClick,
32
33
state,
@@ -56,16 +57,16 @@ export function Alert({
56
57
gap = { ! isFlash ? '16px' : '' }
57
58
justifyContent = { ! isMobile ? 'space-between' : '' }
58
59
margin = { m }
59
- width = " 100%"
60
- maxWidth = " 796px"
60
+ width = { fullWidth ? ' 100%' : 'fit-content' }
61
+ maxWidth = { fullWidth ? 'none' : ' 796px' }
61
62
p = "1rem"
62
63
pr = { canDismiss ? '1.75rem' : '1rem' }
63
64
position = "relative"
64
65
>
65
66
< Box
67
+ display = "flex"
66
68
gap = "10px"
67
69
className = "alertContent"
68
- display = "flex"
69
70
sx = { {
70
71
'.linkButton' : {
71
72
fontSize : '16px' ,
@@ -85,6 +86,7 @@ export function Alert({
85
86
< Box display = "flex" alignItems = "center" >
86
87
< Box
87
88
as = "p"
89
+ alignSelf = "center"
88
90
fontFamily = "Roboto"
89
91
fontSize = "16px"
90
92
fontWeight = "400"
Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ export interface IAlertProps {
20
20
* Boolean que determina si el botón es tipo link
21
21
*/
22
22
buttonLink ?: boolean
23
+ /**
24
+ * Ancho al 100% del contenedot
25
+ */
26
+ fullWidth ?: boolean
23
27
/**
24
28
* Para notificación flash
25
29
*/
You can’t perform that action at this time.
0 commit comments