Skip to content

Commit

Permalink
fix: update chart font weight to number
Browse files Browse the repository at this point in the history
  • Loading branch information
whitelisab committed Dec 19, 2023
1 parent d8e969d commit 2eebfcb
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const defaultFontSize = parseRemToPxInt(tokens.fontSizeS);

ChartJS.defaults.font.size = defaultFontSize;
ChartJS.defaults.font.family = tokens.fontStackPrimary;
ChartJS.defaults.font.weight = tokens.fontWeightMedium.toString();
ChartJS.defaults.font.weight = tokens.fontWeightMedium;
ChartJS.defaults.borderColor = tokens.gray200;
ChartJS.defaults.datasets.line.borderColor = tokens.colorPrimary;

Expand Down Expand Up @@ -69,8 +69,7 @@ const LineChart = (props: Props) => {
},
bodyFont: {
size: defaultFontSize,
// TO:DO once font weight is added to F36, replace with token
weight: '700',
weight: tokens.fontWeightDemiBold,
},
displayColors: false,
callbacks: {
Expand Down

0 comments on commit 2eebfcb

Please sign in to comment.