File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
documentation/pages/Organisms Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ export interface ModalAlertProps {
27
27
title?: string // Titulo del modal
28
28
description?: string // Mensaje del modal
29
29
optionsButton: optionsButton[] // Boton del modal en array
30
+ top?: string // Posición del modal
30
31
}
31
32
// Propiedades del boton
32
33
interface optionsButton {
Original file line number Diff line number Diff line change @@ -19,18 +19,20 @@ export function ModalAlert({
19
19
title,
20
20
description,
21
21
optionsButton,
22
+ top,
22
23
} : ModalAlertProps ) : JSX . Element {
23
24
const [ isDesktop ] = useMediaQuery ( '(min-width: 650px)' )
24
25
25
26
const modalStyles = {
26
27
content : {
27
- top : '3.75rem' ,
28
+ top : top ,
28
29
} ,
29
30
}
30
31
31
32
const showBorder = optionsButton . length > 1
32
33
return (
33
34
< Modal
35
+ id = "modal-alert"
34
36
isOpen = { showModal }
35
37
onClose = { ( ) => { } }
36
38
closeOnEsc = { false }
Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ export interface ModalAlertProps {
13
13
14
14
/** Opciones del boton */
15
15
optionsButton : optionsButton [ ]
16
+
17
+ /** Posición del modal */
18
+ top ?: string
16
19
}
17
20
18
21
interface optionsButton {
You can’t perform that action at this time.
0 commit comments