Improve A11Y of timeline. Show TS & Actions on focus-within

This commit is contained in:
Michael Telatynski 2019-11-01 10:50:58 +00:00
parent db0e643f4d
commit fd4cdd0dec
6 changed files with 18 additions and 6 deletions

View file

@ -57,7 +57,7 @@ export default class DateSeparator extends React.Component {
render() {
// ARIA treats <hr/>s as separators, here we abuse them slightly so manually treat this entire thing as one
return <h2 className="mx_DateSeparator" role="separator">
return <h2 className="mx_DateSeparator" role="separator" tabIndex={-1}>
<hr role="none" />
<div>{ this.getLabel() }</div>
<hr role="none" />