Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix content color for dark theme #241

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions src/SnackbarItem/SnackbarItem.styles.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { green, red, blue, amber } from '@material-ui/core/colors';

import { SNACKBAR_INDENTS, allClasses } from '../utils/constants';

const styles = theme => ({
Expand All @@ -13,16 +15,20 @@ const styles = theme => ({
paddingLeft: 8 * 2.5,
},
variantSuccess: {
backgroundColor: '#43a047', // green
backgroundColor: green[600], // green
color: '#fff',
},
variantError: {
backgroundColor: '#d32f2f', // dark red
backgroundColor: red[700], // dark red
color: '#fff',
},
variantInfo: {
backgroundColor: '#2979ff', // nice blue
backgroundColor: blue.A400, // nice blue
color: '#fff',
},
variantWarning: {
backgroundColor: '#ffa000', // amber
backgroundColor: amber[700], // amber
color: rgba(0, 0, 0, 0.87),
},
message: {
display: 'flex',
Expand Down