From f8fff4c49b8333a66a240d006a1acdd6a12c1e03 Mon Sep 17 00:00:00 2001 From: jeroenransijn Date: Mon, 9 Jul 2018 17:01:31 -0700 Subject: [PATCH] alert improvements --- src/alert/src/Alert.js | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/src/alert/src/Alert.js b/src/alert/src/Alert.js index a2c97ae48..53404f818 100644 --- a/src/alert/src/Alert.js +++ b/src/alert/src/Alert.js @@ -3,7 +3,7 @@ import PropTypes from 'prop-types' import { spacing, dimensions, position, layout } from 'ui-box' import { withTheme } from '../../theme' import { Pane } from '../../layers' -import { Text } from '../../typography' +import { Heading, Paragraph } from '../../typography' import { IconButton } from '../../buttons' import { Icon } from '../../icon' @@ -122,14 +122,14 @@ class Alert extends PureComponent { marginLeft={2} height={14} display="block" - marginTop={3} + marginTop={2} > {this.getIconForIntent(intent)} )} - {title} - + {typeof children === 'string' ? ( - + {children} - + ) : ( children )} {isRemoveable && ( - +