Skip to content

Commit 1d11bde

Browse files
committed
fix: snackbar updates and bug fix from next
1 parent b800365 commit 1d11bde

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

app/component/Snackbar.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import cx from 'classnames';
44
import { FormattedMessage } from 'react-intl';
55
import Icon from './Icon';
66
import { useTranslationsContext } from '../util/useTranslationsContext';
7+
import { useConfigContext } from '../configurations/ConfigContext';
78

89
/**
910
* A generic snackbar notification.
@@ -20,6 +21,7 @@ const Snackbar = ({
2021
className,
2122
}) => {
2223
const intl = useTranslationsContext();
24+
const config = useConfigContext();
2325
return (
2426
<>
2527
<div
@@ -30,7 +32,7 @@ const Snackbar = ({
3032
})}
3133
aria-hidden="true"
3234
>
33-
<Icon img={iconImg} omitViewBox />
35+
<Icon img={iconImg} />
3436
<span className="snackbar-text">
3537
<FormattedMessage id={messageId} defaultMessage={defaultMessage} />
3638
</span>
@@ -44,7 +46,11 @@ const Snackbar = ({
4446
onClick={onClose}
4547
tabIndex="-1"
4648
>
47-
<Icon id="close-icon" img="notification-close" omitViewBox />
49+
<Icon
50+
id="close-icon"
51+
img="notification-close"
52+
color={config.colors.primary}
53+
/>
4854
</button>
4955
</div>
5056
<div className="sr-only" aria-live="polite" role="status">

0 commit comments

Comments
 (0)