Skip to content

Commit

Permalink
Remove deprecated announcement Alert type
Browse files Browse the repository at this point in the history
  • Loading branch information
gabescarbrough committed May 3, 2024
1 parent 2cb9e42 commit bc138c0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 30 deletions.
3 changes: 0 additions & 3 deletions src/Alert/Alert.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import classNames from 'classnames';
export const MessageTypes = {
SUCCESS: 'success',
INFO: 'info',
ANNOUNCEMENT: 'announcement',
FEATURE: 'feature',
WARNING: 'warning',
ERROR: 'error',
Expand All @@ -39,8 +38,6 @@ const getAlertIcon = (type) => {
<FontAwesomeIcon icon={faInfo} transform="shrink-4" />
</span>
);
case MessageTypes.ANNOUNCEMENT:
return (<FontAwesomeIcon icon={faBullhorn} transform="grow-2" />);
case MessageTypes.FEATURE:
return (<FontAwesomeIcon icon={faBullhorn} transform="grow-2" />);
case MessageTypes.WARNING:
Expand Down
1 change: 0 additions & 1 deletion src/Alert/Alert.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ page and are not affected by an event.
### Feature

- Use when showcasing a new feature to a user.
- NOTE: use this variant instead of the Announcement variant (this will be deprecated soon)

<Canvas of={ComponentStories.Feature} />

Expand Down
26 changes: 0 additions & 26 deletions src/Alert/Alert.scss
Original file line number Diff line number Diff line change
Expand Up @@ -129,18 +129,6 @@
}
}

.Alert-announcement {
border-left: 8px solid $synth-hyperlink-color;

.close {
@include close-action;
}

.primary-action {
@include primary-action;
}
}

.Alert-feature {
border: 2px solid $ux-teal-600;

Expand Down Expand Up @@ -294,20 +282,6 @@
}
}

.Alert-announcement {
background-color: $ux-blue-100;
color: $ux-blue-700;
border-left: 8px solid $ux-blue-300;

.close {
@include close-action;
}

.primary-action {
@include primary-action;
}
}

.Alert-feature {
background-color: $ux-teal-100;
color: $ux-teal-800;
Expand Down

0 comments on commit bc138c0

Please sign in to comment.