Skip to content

Commit

Permalink
fix(Alerts): Use Icon for close button instead of times symbol
Browse files Browse the repository at this point in the history
[fixes #131832253]

Signed-off-by: Ryan Dy <rdy@pivotal.io>
  • Loading branch information
charleshansen authored and rdy committed Oct 7, 2016
1 parent e5e22bf commit 2593a77
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion library/src/pivotal-ui-react/alerts/alerts.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ class Alert extends React.Component{
}
return (
<div {...props}>
{dismissable && <button type="button" className="close" aria-hidden={true} onClick={this.handleAlertDismiss}><span>&times;</span></button>}
{children}
{dismissable && <button type="button" className="close sr-only">{closeLabel}</button>}
{dismissable && <button type="button" className="close" aria-hidden={true} onClick={this.handleAlertDismiss}><Icon src="close"/></button>}
</div>
);

Expand Down
4 changes: 4 additions & 0 deletions library/src/pivotal-ui/components/alerts/alerts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
border: none;
margin: 0;

display: flex;
justify-content: space-between;
align-items: center;

a.alert-link {
color: inherit;
text-decoration: underline;
Expand Down

0 comments on commit 2593a77

Please sign in to comment.