Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions src/stories/modals/index.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import {
Modal as ZendeskModal,
Header as ModalHeader,
Body as ModalBody,
Footer as ModalFooter,
FooterItem as ZendeskFooterItem,
Close as ModalClose,
} from "@zendeskgarden/react-modals";
import { Modal as ZendeskModal } from "@zendeskgarden/react-modals";
import { ModalArgs } from "./_types";
import styled from "styled-components";
import { forwardRef } from "react";

const ModalHeader = ZendeskModal.Header;
const ModalBody = ZendeskModal.Body;
const ModalFooter = ZendeskModal.Footer;
const ZendeskFooterItem = ZendeskModal.FooterItem;
const ModalClose = ZendeskModal.Close;

const UgModalBody = styled(ModalBody)`
color: ${({ theme }) => theme.palette.grey["800"]};
`;

const UgModal = styled(ZendeskModal)<ModalArgs>`
${({ isExtraLarge }) => isExtraLarge && "height: 90%; max-height: 90%; width: 90%;"}
${({ isExtraLarge }) =>
isExtraLarge && "height: 90%; max-height: 90%; width: 90%;"}

@media (max-width: ${({ theme }) => theme.breakpoints.sm}) {
top: 0;
Expand Down