chore(Dashboard): Improve accessibility chart descriptions (#28127)

This commit is contained in:
Geido 2024-04-18 18:20:31 +02:00 committed by GitHub
parent 96cea5aa1f
commit 9ee56bbc5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -478,10 +478,14 @@ class Chart extends React.Component {
ref={this.setDescriptionRef}
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{ __html: slice.description_markeddown }}
role="complementary"
/>
)}
<ChartWrapper className={cx('dashboard-chart')}>
<ChartWrapper
className={cx('dashboard-chart')}
aria-label={slice.description}
>
{isLoading && (
<ChartOverlay
style={{