diff --git a/src/components/Dialog/Dialog.tsx b/src/components/Dialog/Dialog.tsx index c7806c60..21934253 100644 --- a/src/components/Dialog/Dialog.tsx +++ b/src/components/Dialog/Dialog.tsx @@ -1,7 +1,7 @@ import { ReactNode } from "react"; import * as RadixDialog from "@radix-ui/react-dialog"; import styled, { keyframes } from "styled-components"; -import { Button, Icon, Spacer, Title } from "@/components"; +import { Button, Icon, Spacer } from "@/components"; import { CrossButton } from "../commonElement"; import { ButtonProps } from "@/components/Button/Button"; @@ -81,6 +81,12 @@ const TitleArea = styled.div` min-height: ${({ theme }) => theme.sizes[9]}; // 32px `; +const Title = styled.h2` + font: ${({ theme }) => theme.click.dialog.typography.title.default}; + padding: 0; + margin: 0; +`; + const CloseButton = ({ onClose }: { onClose?: () => void }) => ( @@ -120,15 +126,10 @@ const DialogContent = ({ {showOverlay && } - - {title} - + {title} {showClose && } - + {children} diff --git a/src/components/Flyout/Flyout.stories.tsx b/src/components/Flyout/Flyout.stories.tsx index d0967f83..17039361 100644 --- a/src/components/Flyout/Flyout.stories.tsx +++ b/src/components/Flyout/Flyout.stories.tsx @@ -1,4 +1,4 @@ -import { Button } from ".."; +import { Button, Link, Text } from ".."; import { Flyout, FlyoutProps } from "./Flyout"; interface Props extends FlyoutProps { @@ -11,7 +11,9 @@ interface Props extends FlyoutProps { const FlyoutExample = ({ title, description, align, size, ...props }: Props) => { return ( - Flyout Trigger + + Flyout Trigger + description={description} /> - Content1 long text content + + Flyout content belongs here. + diff --git a/src/components/Flyout/Flyout.tsx b/src/components/Flyout/Flyout.tsx index b36f76bc..295277cf 100644 --- a/src/components/Flyout/Flyout.tsx +++ b/src/components/Flyout/Flyout.tsx @@ -191,7 +191,7 @@ const FlexGrow = styled.div` const FlyoutTitle = styled(DialogTitle)` ${({ theme }) => ` color: ${theme.click.flyout.color.title.default}; - font: ${theme.typography.styles.product.titles.xl}; + font: ${theme.click.flyout.typography.title.default}; margin: 0; padding: 0; `} @@ -200,7 +200,7 @@ const FlyoutTitle = styled(DialogTitle)` const FlyoutDescription = styled(DialogDescription)` ${({ theme }) => ` color: ${theme.click.flyout.color.description.default}; - font: ${theme.typography.styles.product.text.normal.md}; + font: ${theme.click.flyout.typography.description.default}; margin: 0; padding: 0; `}