This repository has been archived by the owner on Mar 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Dialog to be more accessible
- Loading branch information
Showing
8 changed files
with
538 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// @flow | ||
import React from 'react'; | ||
|
||
import Icon from '../Icon'; | ||
import { DialogClose as _DialogClose } from './styled'; | ||
|
||
type Props = { | ||
className?: string | ||
}; | ||
|
||
const DialogClose = ({ children, ...props }: Props) => ( | ||
<_DialogClose kind="link" {...props}> | ||
<Icon icon="cross" /> | ||
</_DialogClose> | ||
); | ||
|
||
DialogClose.defaultProps = { | ||
className: undefined | ||
}; | ||
|
||
export default DialogClose; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// @flow | ||
import React, { type Node } from 'react'; | ||
|
||
import { DialogTitle as _DialogTitle } from './styled'; | ||
|
||
type Props = { | ||
children: Node, | ||
className?: string | ||
}; | ||
|
||
const DialogTitle = ({ children, ...props }: Props) => ( | ||
<_DialogTitle as="h5" isSubHeading {...props}> | ||
{children} | ||
</_DialogTitle> | ||
); | ||
|
||
DialogTitle.defaultProps = { | ||
className: undefined | ||
}; | ||
|
||
export default DialogTitle; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.