From 005314081ec8baa7152e630830cf5ad078abda25 Mon Sep 17 00:00:00 2001 From: Nathan Ward Date: Wed, 15 Apr 2020 21:04:33 -0700 Subject: [PATCH] Fix icon for `` to be the "i" info icon --- packages/react-components/CHANGELOG.md | 1 + packages/react-components/source/react/library/alert/Alert.js | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/react-components/CHANGELOG.md b/packages/react-components/CHANGELOG.md index cd557301c..ed314c4e8 100644 --- a/packages/react-components/CHANGELOG.md +++ b/packages/react-components/CHANGELOG.md @@ -1,5 +1,6 @@ # [Unreleased](https://github.com/puppetlabs/design-system/compare/@puppet/react-components@5.19.5...HEAD) +- [Alert] Fix icon for info Alert, an issue introduced in 5.0.0-beta.3 (by [@vine77](https://github.com/vine77) in [#242](https://github.com/puppetlabs/design-system/pull/242)) - [Badge] Remove outer margin from Badge component while retaining margin between adjacent Badge components (by [@vine77](https://github.com/vine77) in [#241](https://github.com/puppetlabs/design-system/pull/241)) # [5.19.4](https://github.com/puppetlabs/design-system/compare/@puppet/react-components@5.19.3...@puppet/react-components@5.19.4) (2020-04-05) diff --git a/packages/react-components/source/react/library/alert/Alert.js b/packages/react-components/source/react/library/alert/Alert.js index 854ccddc0..41f06b278 100644 --- a/packages/react-components/source/react/library/alert/Alert.js +++ b/packages/react-components/source/react/library/alert/Alert.js @@ -71,15 +71,13 @@ class Alert extends React.Component { switch (type) { case 'danger': + case 'warning': typeIcon = 'alert'; break; case 'success': typeIcon = 'check-circle'; break; case 'info': - case 'warning': - typeIcon = 'alert'; - break; default: typeIcon = 'info-circle'; }