Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Commit

Permalink
fix: Adjust close icon position (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikshestopal authored May 26, 2020
1 parent 158703d commit 07752d6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Modal/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,17 +202,17 @@ Modal.Header = ({ title, children, showClose = true }) => {
{children}

{showClose && (
<Button
variant="grey"
size="sm"
style={{ marginLeft: 'auto', border: 'none' }}
<Icon
style={{ marginLeft: 'auto', marginRight: -6, outline: 'none' }}
onClick={handleClose}
onKeyDown={handleKeyDown}
aria-label="Close Modal"
type="button"
tabIndex="-1">
<Icon name="close" color="greyDarkest" size={24} />
</Button>
role="button"
tabIndex="-1"
name="close"
color="greyDarkest"
size={24}
/>
)}
</Flex>
</ModalHeaderInner>
Expand Down

0 comments on commit 07752d6

Please sign in to comment.