File tree Expand file tree Collapse file tree 3 files changed +19
-13
lines changed
documentation/pages/Atoms Expand file tree Collapse file tree 3 files changed +19
-13
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export const ViewLabel = (): JSX.Element => {
7
7
< >
8
8
< MyHeading > Label</ MyHeading >
9
9
< MyText >
10
- Eate componente permite asignar y mostrar rápidamente información relevante sobre elementos
10
+ Este componente permite asignar y mostrar rápidamente información relevante sobre elementos
11
11
individuales, proporcionando una forma visualmente efectiva de categorizar, destacar o
12
12
etiquetar contenido.
13
13
</ MyText >
Original file line number Diff line number Diff line change 1
1
import { render , screen , fireEvent } from '@testing-library/react'
2
+ // TODO: utilizar userEvent
3
+
2
4
import { Alert } from './Alert'
3
5
4
6
describe ( 'Alert Component' , ( ) => {
Original file line number Diff line number Diff line change 1
- import { Box , HStack , useMediaQuery } from '@chakra-ui/react'
1
+ import { Box , useMediaQuery } from '@chakra-ui/react'
2
2
3
3
import { BtnLink , BtnPrimary } from '@/molecules'
4
4
import { vars } from '@/theme'
@@ -47,7 +47,7 @@ export function Alert({
47
47
48
48
return (
49
49
< Box
50
- className = { isFlash ? 'flashNotification' : 'embeddedAlert ' }
50
+ className = { isFlash ? 'flashNotification' : 'e_alert ' }
51
51
alignItems = { ! isMobile ? 'center' : 'unset' }
52
52
backgroundColor = { alertStates [ state ] . bg }
53
53
borderRadius = "8px"
@@ -62,9 +62,10 @@ export function Alert({
62
62
pr = { canDismiss ? '1.75rem' : '1rem' }
63
63
position = "relative"
64
64
>
65
- < HStack
65
+ < Box
66
66
gap = "10px"
67
67
className = "alertContent"
68
+ display = "flex"
68
69
sx = { {
69
70
'.linkButton' : {
70
71
fontSize : '16px' ,
@@ -81,17 +82,20 @@ export function Alert({
81
82
>
82
83
{ alertStates [ state ] . icon }
83
84
</ Box >
84
- < Box
85
- fontFamily = "Roboto"
86
- fontSize = "16px"
87
- fontWeight = "400"
88
- lineHeight = "28px"
89
- color = { vars ( 'colors-neutral-darkCharcoal' ) }
90
- >
91
- { children }
85
+ < Box display = "flex" alignItems = "center" >
86
+ < Box
87
+ as = "p"
88
+ fontFamily = "Roboto"
89
+ fontSize = "16px"
90
+ fontWeight = "400"
91
+ lineHeight = "28px"
92
+ color = { vars ( 'colors-neutral-darkCharcoal' ) }
93
+ >
94
+ { children }
95
+ </ Box >
92
96
{ buttonType === 'link' && < BtnLink onClick = { handleClick } > { buttonText } </ BtnLink > }
93
97
</ Box >
94
- </ HStack >
98
+ </ Box >
95
99
96
100
{ buttonType === 'normal' && (
97
101
< BtnPrimary isFullWidth = { ! ! isMobile } leftIcon = { buttonIcon } onClick = { handleClick } >
You can’t perform that action at this time.
0 commit comments