Skip to content

Commit de2d309

Browse files
chore: bump chart.js and fix font weight type (#5789)
* fix(deps): bump chart.js from 4.4.0 to 4.4.1 Bumps [chart.js](https://github.com/chartjs/Chart.js) from 4.4.0 to 4.4.1. - [Release notes](https://github.com/chartjs/Chart.js/releases) - [Commits](chartjs/Chart.js@v4.4.0...v4.4.1) --- updated-dependencies: - dependency-name: chart.js dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * fix: update chart font weight to number --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 60c92ee commit de2d309

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

apps/google-analytics-4/frontend/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/google-analytics-4/frontend/src/components/main-app/LineChart/LineChart.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const defaultFontSize = parseRemToPxInt(tokens.fontSizeS);
2222

2323
ChartJS.defaults.font.size = defaultFontSize;
2424
ChartJS.defaults.font.family = tokens.fontStackPrimary;
25-
ChartJS.defaults.font.weight = tokens.fontWeightMedium.toString();
25+
ChartJS.defaults.font.weight = tokens.fontWeightMedium;
2626
ChartJS.defaults.borderColor = tokens.gray200;
2727
ChartJS.defaults.datasets.line.borderColor = tokens.colorPrimary;
2828

@@ -69,8 +69,7 @@ const LineChart = (props: Props) => {
6969
},
7070
bodyFont: {
7171
size: defaultFontSize,
72-
// TO:DO once font weight is added to F36, replace with token
73-
weight: '700',
72+
weight: tokens.fontWeightDemiBold,
7473
},
7574
displayColors: false,
7675
callbacks: {

0 commit comments

Comments
 (0)