Adds role heading to the timeline date headers
This commit is contained in:
@@ -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} />
|
||||||
|
Reference in New Issue
Block a user