Improve modal footer styling (#24203)

* Improve modal footer styling

* Improve texting

* roll back

* add changelog
This commit is contained in:
Maksym Yadlovskyi
2025-12-10 14:18:04 +01:00
committed by GitHub
parent 679c47ecc2
commit 7aeeca3203
2 changed files with 15 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
type = "f"
message = "Make modal footer sticky to always show modal action buttons."
pulls = ["24303"]
issues = ["24370"]

View File

@@ -33,6 +33,15 @@ const ModalContent = styled(MantineModal.Content)`
border-radius: 10px;
`;
const StyledModalFooter = styled(MantineModal.Body)(
({ theme }) => css`
position: sticky;
bottom: 0;
background-color: ${theme.colors.global.contentBackground};
padding: ${theme.spacings.md};
`,
);
const StyledModalRoot = styled(MantineModal.Root)<{ $scrollInContent: boolean }>(
({ theme, $scrollInContent }) => css`
--mantine-color-body: ${theme.colors.global.contentBackground};
@@ -115,6 +124,6 @@ Modal.Title = styled(MantineModal.Title)`
`;
Modal.Body = MantineModal.Body;
Modal.Footer = MantineModal.Body;
Modal.Footer = StyledModalFooter;
export default Modal;