Skip to content

Commit

Permalink
feat(css): adds chartId-based class to dashboard chart holder (#19873)
Browse files Browse the repository at this point in the history
* feat: adds `chartId`-based class to dashboard chart holder

* Adding comment to denote the purpose of the class in the code.
  • Loading branch information
rusackas authored May 11, 2022
1 parent 3e36d4a commit 60188ef
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,8 @@ class ChartHolder extends React.Component {
className={cx(
'dashboard-component',
'dashboard-component-chart-holder',
// The following class is added to support custom dashboard styling via the CSS editor
`dashboard-chart-id-${chartId}`,
this.state.outlinedComponentId ? 'fade-in' : 'fade-out',
isFullSize && 'full-size',
)}
Expand Down

0 comments on commit 60188ef

Please sign in to comment.