Skip to content

Commit

Permalink
fix: [AXE-CORE][Serverless - Observability] Observability -> SLOs -> …
Browse files Browse the repository at this point in the history
…Metric sparkline charts fail <svg> elements with an img role must have an alternative text a11y check

Closes: elastic#179491
  • Loading branch information
alexwizp committed May 9, 2024
1 parent 24a34a4 commit fed8829
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,12 @@ export function SloCardChart({
title: slo.name,
subtitle: subTitle,
value: sliValue,
trendA11yTitle: i18n.translate('xpack.slo.slo.sLOGridItem.trendA11yLabel', {
defaultMessage: `The "{title}" trend`,
values: {
title: slo.name,
},
}),
trendShape: MetricTrendShape.Area,
trend: historicalSliData?.map((d) => ({
x: d.key as number,
Expand Down

0 comments on commit fed8829

Please sign in to comment.