mirror of https://github.com/apache/superset.git
chore(Dashboard): Improve accessibility chart descriptions (#28127)
This commit is contained in:
parent
96cea5aa1f
commit
9ee56bbc5b
|
@ -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={{
|
||||
|
|
Loading…
Reference in New Issue