Skip to content

Commit

Permalink
chore(Dashboard): Improve accessibility chart descriptions (apache#28127
Browse files Browse the repository at this point in the history
)
  • Loading branch information
geido authored Apr 18, 2024
1 parent edde50c commit 3709623
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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={{
Expand Down

0 comments on commit 3709623

Please sign in to comment.