Skip to content

Commit b059a5c

Browse files
fix(PDYE-1327): correcion padding botones modal
1 parent 95987e2 commit b059a5c

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

src/documentation/components/Organisms/Modals.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const ModalDemoDefault = (): JSX.Element => {
5454

5555
return (
5656
<>
57-
<BtnPrimary onClick={onOpen}>Open Modal11111</BtnPrimary>
57+
<BtnPrimary onClick={onOpen}>Open Modal</BtnPrimary>
5858
<Modal isOpen={isOpen} onClose={onClose} title="Confirmación">
5959
<ModalContent>
6060
<p>{text}</p>

src/organisms/Modals/Modal/Modal.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,17 @@ export const Modal = ({
6161
},
6262
'.uikit-modalButtons': {
6363
py: py,
64+
px: px,
6465
},
6566
}),
6667
...(withoutMargin && {
6768
'.uikit-modalContent': {
6869
pt: 0,
6970
px: 0,
7071
},
72+
'.uikit-modalButtons': {
73+
px: px,
74+
},
7175
}),
7276
}}
7377
>

src/organisms/Modals/Modal/ModalButtons.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const ModalButtons = ({
3434
flexDirection={buttonFull ? 'column' : 'row'}
3535
gap="24px"
3636
justifyContent={buttonsCenter ? 'center' : 'flex-start'}
37-
px={isDesktop && (!buttonsCenter || !buttonsColumn) ? '24px' : '0'}
37+
px={0}
3838
pt="32px"
3939
pb={0}
4040
className="uikit-modalButtons"

0 commit comments

Comments
 (0)