Skip to content

Commit

Permalink
fix(core/reports): Add css for single indicator widget
Browse files Browse the repository at this point in the history
  • Loading branch information
sara-gnucoop authored and robzan8 committed Sep 4, 2023
1 parent 111c647 commit 886ce13
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion projects/core/reports/src/xls-report/xls-report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,10 +338,11 @@ function getTrendWidget(
}
return createWidget({
widgetType: AjfWidgetType.Text,
htmlText: `<i class=\"material-icons\" style=\"vertical-align: bottom\">${icon}</i>${percValue}`,
htmlText: `<i class=\"material-icons\" style=\"vertical-align: bottom; color: ${color}\">${icon}</i><span style=\"color: ${color}\">${percValue}</span>`,
styles: {
...htmlWidget,
color: color,
fontSize: '16px',
justifyContent: 'center',
},
visibility: {
Expand Down Expand Up @@ -381,6 +382,7 @@ function _buildSingleIndicator(json: {[key: string]: string}[]): AjfWidget[] {
marginBottom,
fontSize: '90px',
fontWeight: 'bold',
lineHeight: '1',
justifyContent: 'center',
},
}),
Expand Down

0 comments on commit 886ce13

Please sign in to comment.