TimeRangePicker: Announce to screen reader when time range is updated (#87692)

Add aria live to TimeRangePicker
This commit is contained in:
Tobias Skarhed
2024-05-14 10:20:15 +02:00
committed by GitHub
parent fd218edca4
commit aa7a01a87e
@@ -235,7 +235,7 @@ export const TimePickerButtonLabel = memo<LabelProps>(({ hideText, value, timeZo
}
return (
<span className={styles.container}>
<span className={styles.container} aria-live="polite" aria-atomic="true">
<span>{formattedRange(value, timeZone)}</span>
<span className={styles.utc}>{rangeUtil.describeTimeRangeAbbreviation(value, timeZone)}</span>
</span>