Skip to content

Commit

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

* 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 and philipher29 committed Jun 9, 2022
1 parent 553db25 commit 58b59fd
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 58b59fd

Please sign in to comment.