Skip to content

Commit 9a0c5c9

Browse files
author
Ives van Hoorne
committed
Fix notification z-index
1 parent c7960b4 commit 9a0c5c9

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

src/app/components/Notification.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ const Container = styled.div`
2121
2222
border-left: 2px solid transparent;
2323
border-color: ${props => {
24-
if (props.type === 'error') return theme.red.darken(0.2)();
25-
if (props.type === 'warning') return theme.primary.darken(0.2);
26-
if (props.type === 'success') return theme.green();
27-
return theme.secondary;
28-
}}
24+
if (props.type === 'error') return theme.red.darken(0.2)();
25+
if (props.type === 'warning') return theme.primary.darken(0.2);
26+
if (props.type === 'success') return theme.green();
27+
return theme.secondary;
28+
}}
2929
30-
background-color: ${() => theme.background2.darken(0.2)()};
30+
background-color: ${theme.background2.darken(0.2)()};
3131
`;
3232

3333
const Content = styled.div`
@@ -67,19 +67,19 @@ const Button = styled.div`
6767
padding: 0.5rem;
6868
background-color:
6969
${props => {
70-
if (props.type === 'error') return theme.redBackground.lighten(0.2);
71-
if (props.type === 'warning') return theme.primary.darken(0.5);
72-
return theme.secondary.darken(0.1);
73-
}};
70+
if (props.type === 'error') return theme.redBackground.lighten(0.2);
71+
if (props.type === 'warning') return theme.primary.darken(0.5);
72+
return theme.secondary.darken(0.1);
73+
}};
7474
font-weight: 500;
7575
7676
&:hover {
7777
background-color:
7878
${props => {
79-
if (props.type === 'error') return theme.redBackground.lighten(0.1);
80-
if (props.type === 'warning') return theme.primary.darken(0.6);
81-
return theme.secondary.darken(0.2);
82-
}};
79+
if (props.type === 'error') return theme.redBackground.lighten(0.1);
80+
if (props.type === 'warning') return theme.primary.darken(0.6);
81+
return theme.secondary.darken(0.2);
82+
}};
8383
}
8484
`;
8585

src/app/containers/Notifications.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const NotificationContainer = styled.div`
3535
position: fixed;
3636
left: 24px;
3737
bottom: 0;
38-
zIndex: 20;
38+
zIndex: 41;
3939
`;
4040

4141
const mapStateToProps = state => ({

0 commit comments

Comments
 (0)