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

View File

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