Skip to content

Commit

Permalink
Merge pull request #454 from rsnyman/fix-result-summary-labels
Browse files Browse the repository at this point in the history
Fix up font colour issues with the labels on various charts/widgets
  • Loading branch information
rsnyman authored Apr 4, 2023
2 parents 46210b3 + 9ef0e75 commit e3b5092
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
6 changes: 6 additions & 0 deletions frontend/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -251,3 +251,9 @@ div[data-id=widget-param-dropdown] > div {
:where(.pf-theme-dark) .pf-c-clipboard-copy .pf-c-form-control[readonly] {
border-bottom-color: var(--pf-global--BorderColor--400) !important;
}

:where(.pf-theme-dark) {
--pf-chart-global--label--Fill: var(--pf-global--Color--100);
--pf-chart-axis--tick-label--Fill: var(--pf-global--Color--200);
--pf-chart-donut--label--title--Fill: var(--pf-global--Color--100);
}
16 changes: 8 additions & 8 deletions frontend/src/widgets/resultsummary.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@ export class ResultSummaryWidget extends React.Component {

render() {
const themeColors = [
'var(--pf-global--success-color--100)',
'var(--pf-global--danger-color--100)',
'var(--pf-global--info-color--100)',
'var(--pf-global--warning-color--100)',
'var(--pf-global--palette--purple-400)',
'var(--pf-global--palette--purple-700)',
'var(--pf-global--primary-color--100)'
];
'var(--pf-global--success-color--100)',
'var(--pf-global--danger-color--100)',
'var(--pf-global--info-color--100)',
'var(--pf-global--warning-color--100)',
'var(--pf-global--palette--purple-400)',
'var(--pf-global--palette--purple-700)',
'var(--pf-global--primary-color--100)'
];
return (
<Card>
<WidgetHeader title={this.title} getDataFunc={this.getResultSummary} onEditClick={this.props.onEditClick} onDeleteClick={this.props.onDeleteClick}/>
Expand Down

0 comments on commit e3b5092

Please sign in to comment.