Skip to content

Commit

Permalink
fix: adjust dashboard title styles to original implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikThePendric committed Sep 19, 2024
1 parent a1ac9d7 commit c880c56
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/visualizations/config/adapters/dhis_highcharts/chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ export default function (layout, el, extraOptions, series) {
series[0]
),
}
: undefined,
layout.type === VIS_TYPE_SINGLE_VALUE && extraOptions.dashboard
? { spacingTop: 7 }
: undefined
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ export default function (layout, metaData, extraOptions, series) {
legendOptions,
legendSets
)
if (dashboard) {
// TODO: is this always what we want?
title.style.fontWeight = 'normal'
}
break
default:
title.style.color = fontStyle[FONT_STYLE_OPTION_TEXT_COLOR]
Expand Down

0 comments on commit c880c56

Please sign in to comment.