Skip to content

Commit

Permalink
Remove auto colors from Dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
colebemis authored Oct 14, 2021
1 parent 1183a44 commit a177e94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/stories/Dialog.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function CustomHeader({
}, [onClose])
if (typeof title === 'string' && typeof subtitle === 'string') {
return (
<Box bg="auto.blue.3">
<Box bg="accent.subtle">
<h1 id={dialogLabelId}>{title.toUpperCase()}</h1>
<h2 id={dialogDescriptionId}>{subtitle.toLowerCase()}</h2>
<Dialog.CloseButton onClose={onCloseClick} />
Expand All @@ -160,11 +160,11 @@ function CustomHeader({
return null
}
function CustomBody({children}: React.PropsWithChildren<DialogProps>) {
return <Dialog.Body bg="auto.red.3">{children}</Dialog.Body>
return <Dialog.Body bg="danger.subtle">{children}</Dialog.Body>
}
function CustomFooter({footerButtons}: React.PropsWithChildren<DialogProps>) {
return (
<Dialog.Footer bg="auto.yellow.3">
<Dialog.Footer bg="attention.subtle">
{footerButtons ? <Dialog.Buttons buttons={footerButtons} /> : null}
</Dialog.Footer>
)
Expand Down

0 comments on commit a177e94

Please sign in to comment.