File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import cx from 'classnames';
44import { FormattedMessage } from 'react-intl' ;
55import Icon from './Icon' ;
66import { 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" >
You can’t perform that action at this time.
0 commit comments