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

Commit 380bf5e

Browse files
christophidespPanos Christophides
andauthored
Feat/3047 (#411)
* update section titles and description colors * reduce section title font-size Co-authored-by: Panos Christophides <[email protected]>
1 parent d67ed66 commit 380bf5e

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

src/domains/charts/chartMenuGroup/title.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react"
2-
import { H0 } from "@netdata/netdata-ui"
2+
import { H1 } from "@netdata/netdata-ui"
33
import { withMenuGroup } from "domains/charts/menuGroup"
44

55
export const ChartMenuGroupIcon = ({ icon, ...rest }) => (
@@ -8,9 +8,9 @@ export const ChartMenuGroupIcon = ({ icon, ...rest }) => (
88

99
export const ChartMenuGroupTitle = ({ title, ...rest }) =>
1010
title ? (
11-
<H0 color="text" {...rest}>
11+
<H1 color="sectionTitle" {...rest}>
1212
{title}
13-
</H0>
13+
</H1>
1414
) : null
1515

1616
export const ChartMenuGroupTitleContainer = withMenuGroup(

src/domains/charts/chartSubMenu/title.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import React from "react"
2-
import { H3 } from "@netdata/netdata-ui"
2+
import { H3, TextBig } from "@netdata/netdata-ui"
33
import { withSubMenu } from "domains/charts/subMenu"
44

55
export const ChartSubMenuTitle = ({ title, ...rest }) =>
66
title ? (
7-
<H3 color="text" {...rest}>
7+
<H3 color="sectionTitle" strong={false} {...rest}>
88
{title}
99
</H3>
1010
) : null

src/domains/charts/description/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ const Description = ({ children, onClick, ...rest }) => {
2020
)
2121

2222
return children ? (
23-
<Text color="textDescription" dangerouslySetInnerHTML={{ __html: children }} onClick={click} {...rest} />
23+
<Text
24+
color="sectionDescription"
25+
dangerouslySetInnerHTML={{ __html: children }}
26+
onClick={click}
27+
{...rest}
28+
/>
2429
) : null
2530
}
2631

0 commit comments

Comments
 (0)