mirror of
https://github.com/Graylog2/graylog2-server.git
synced 2026-03-13 09:32:21 +08:00
Improve modal footer styling (#24203)
* Improve modal footer styling * Improve texting * roll back * add changelog
This commit is contained in:
committed by
GitHub
parent
679c47ecc2
commit
7aeeca3203
5
changelog/unreleased/issue-24370.toml
Normal file
5
changelog/unreleased/issue-24370.toml
Normal file
@@ -0,0 +1,5 @@
|
||||
type = "f"
|
||||
message = "Make modal footer sticky to always show modal action buttons."
|
||||
|
||||
pulls = ["24303"]
|
||||
issues = ["24370"]
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user