Skip to content

Commit

Permalink
Billing enhancements: storage layers (#3080) - styling
Browse files Browse the repository at this point in the history
  • Loading branch information
rodichenko committed Mar 2, 2023
1 parent 9148c17 commit e3d70ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
10 changes: 4 additions & 6 deletions client/src/components/billing/reports/charts/storage-layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ function StorageLayers (
onImageDataReceived,
reportThemes,
highlightTickFn,
highlightTickStyle = {},
highlightAxisStyle = {},
loading,
discounts = ((o) => o)
}
Expand Down Expand Up @@ -104,11 +102,11 @@ function StorageLayers (
},
ticks: {
fontColor: reportThemes.subTextColor,
major: Object.assign({
major: {
enabled: !!highlightTickFn,
fontStyle: 'normal',
fontColor: reportThemes.subTextColor
}, highlightTickStyle)
fontColor: reportThemes.textColor
}
}
}],
yAxes: [{
Expand Down Expand Up @@ -192,7 +190,7 @@ function StorageLayers (
},
[HighlightAxisPlugin.id]: {
highlightAxis: highlightedLabel,
backgroundColor: highlightAxisStyle.backgroundColor
backgroundColor: fadeout(reportThemes.lightBlue, 0.90)
},
[BarchartDataLabelPlugin.id]: {
valueFormatter
Expand Down
8 changes: 0 additions & 8 deletions client/src/components/billing/reports/storage-report.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import {
numberFormatter,
ResizableContainer
} from './utilities';
import {fadeout} from '../../../themes/utilities/color-utilities';
import BillingNavigation, {RUNNER_SEPARATOR, REGION_SEPARATOR} from '../navigation';
import {
getBillingGroupingSortField,
Expand Down Expand Up @@ -506,13 +505,6 @@ class StorageReports extends React.Component {
highlightTickFn={
(_, tick) => tick._index === selectedIndex
}
highlightTickStyle={{
fontColor: reportThemes.textColor,
fontSize: 14
}}
highlightAxisStyle={{
backgroundColor: fadeout(reportThemes.lightBlue, 0.90)
}}
discounts={isVolumeMetrics ? undefined : storageDiscounts}
/>
</div>
Expand Down

0 comments on commit e3d70ca

Please sign in to comment.