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

Commit 5fb323c

Browse files
committed
fix error notifications on dark theme
1 parent 5f8bcf9 commit 5fb323c

3 files changed

Lines changed: 5 additions & 9 deletions

File tree

src/components/notifications/notifications.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ export const showCloudInstallationProblemNotification = () => {
2020
}
2121
const notificationComponent = createUINotification({
2222
...uiNotification,
23-
success: false,
23+
error: true,
2424
leftContent: (
2525
<S.NodeIconContainer>
26-
<Icon name="gear" size="large" />
26+
<Icon name="gear" size="large" color="error" />
2727
</S.NodeIconContainer>
2828
),
2929
})
@@ -44,10 +44,10 @@ export const showCloudConnectionProblemNotification = () => {
4444
}
4545
const notificationComponent = createUINotification({
4646
...uiNotification,
47-
success: false,
47+
error: true,
4848
leftContent: (
4949
<S.NodeIconContainer>
50-
<Icon name="gear" size="large" />
50+
<Icon name="gear" size="large" color="error" />
5151
</S.NodeIconContainer>
5252
),
5353
})

src/components/notifications/styled.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import styled from "styled-components"
2-
import { getColor, getSizeBy } from "@netdata/netdata-ui"
2+
import { getSizeBy } from "@netdata/netdata-ui"
33

44
export const NodeIconContainer = styled.div`
55
width: ${getSizeBy(5)};
@@ -8,9 +8,6 @@ export const NodeIconContainer = styled.div`
88
display: flex;
99
justify-content: center;
1010
align-items: center;
11-
& > svg use {
12-
fill: ${getColor(["neutral", "limedSpruce"])};
13-
}
1411
`
1512

1613
export const NotificationLink = styled.a`

src/components/ui-notification/styled.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,4 @@ export const HeaderText = styled(Text)<{ error?: boolean; success?: boolean }>`
3232
export const ContentText = styled(TextSmall)<{ error?: boolean; success?: boolean }>`
3333
display: block;
3434
color: ${({ error }) => (error && getColor("error")) || getColor("text")};
35-
font-weight: ${({ error }) => error && "bold"};
3635
`

0 commit comments

Comments
 (0)