Skip to content

Commit

Permalink
[components] Fix incorrect color proptype for close button in portal
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Oct 6, 2020
1 parent 4f1720a commit c553eef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/@sanity/components/src/dialogs/DefaultDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ export default class DefaultDialog extends React.PureComponent {
<div className={styles.closeButtonContainer}>
<Button
className={styles.closeButton}
color={['danger', 'success', 'warning'].includes(color) && 'white'}
color={
['danger', 'success', 'warning'].includes(color) ? 'white' : undefined
}
icon={CloseIcon}
kind="simple"
onClick={onClose}
Expand Down

0 comments on commit c553eef

Please sign in to comment.