Adds role heading to the timeline date headers

This commit is contained in:
Josh Perez 2023-04-24 16:19:16 -04:00 committed by GitHub
parent d39ef234e0
commit 0cd09c6259
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,12 +67,14 @@ export function TimelineFloatingHeader({
return (
<div
aria-level={5}
className={classNames(
'TimelineFloatingHeader',
`TimelineFloatingHeader--${
visible && hasRendered ? 'visible' : 'hidden'
}`
)}
role="heading"
style={style}
>
<TimelineDateHeader floating i18n={i18n} timestamp={timestamp} />