feat(css): adds chartId-based class to dashboard chart holder (#19873)

* feat: adds `chartId`-based class to dashboard chart holder

* Adding comment to denote the purpose of the class in the code.
This commit is contained in:
Evan Rusackas 2022-05-11 15:44:37 -06:00 committed by GitHub
parent 3e36d4a0a1
commit 60188ef654
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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',
)}