Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit ad79e95

Browse files
fixing icon colors
1 parent 578f86e commit ad79e95

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

src/components/Notifications.tsx

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {
33
Snackbar,
44
SnackbarContent,
55
Theme,
6+
Typography,
67
WithStyles,
78
withStyles,
89
} from '@material-ui/core';
@@ -187,15 +188,17 @@ const Notification: ComponentType<NotificationProps> = withStyles(styles)(
187188
className={classNames(classes[variant], className)}
188189
message={
189190
<span className={classes.message}>
190-
{createElement(iconsByVariant[variant], {
191-
className: classNames(
192-
classes.icon,
193-
classes.iconVariant,
194-
),
195-
})}
196-
{title} {subheader}
197-
<br />
198-
{content}
191+
<Typography variant={'body2'}>
192+
{createElement(iconsByVariant[variant], {
193+
className: classNames(
194+
classes.icon,
195+
classes.iconVariant,
196+
),
197+
})}
198+
{title} {subheader}
199+
<br />
200+
{content}
201+
</Typography>
199202
</span>
200203
}
201204
action={[
@@ -204,7 +207,9 @@ const Notification: ComponentType<NotificationProps> = withStyles(styles)(
204207
color={'inherit'}
205208
onClick={() => dismiss.next(messageId)}
206209
>
207-
<Close className={classes.icon} />
210+
<Typography variant={'body2'}>
211+
<Close className={classes.icon} />
212+
</Typography>
208213
</IconButton>,
209214
]}
210215
{...other}

0 commit comments

Comments
 (0)