fix(a11y/calendar) make settings button reachable by keyboard

without this, a keyboard but non screen reader user can't reach the
button via tabulation
This commit is contained in:
Emmanuel Pelletier 2023-03-01 09:23:26 +01:00
parent 0d0bec3aad
commit 3acb3c2a4c
1 changed files with 2 additions and 1 deletions

View File

@ -202,7 +202,8 @@ class CalendarList extends AbstractPage<Props> {
className = 'meetings-list-empty-button'
onClick = { this._onOpenSettings }
onKeyPress = { this._onKeyPressOpenSettings }
role = 'button'>
role = 'button'
tabIndex = { 0 }>
<Icon
className = 'meetings-list-empty-icon'
src = { IconCalendar } />