1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-24 04:48:03 +00:00

[a11y] added 'keyboard access' for 'dir view - dirent' & fixed bugs

This commit is contained in:
llj
2021-09-29 15:23:02 +08:00
parent b5d3a6cf6b
commit aef44a8605
8 changed files with 70 additions and 111 deletions

View File

@@ -146,13 +146,15 @@ class MylibRepoMenu extends React.Component {
return (
<Dropdown isOpen={this.state.isItemMenuShow} toggle={this.toggleOperationMenu}>
<DropdownToggle
className="sf-dropdown-toggle sf2-icon-caret-down border-0 p-0"
tag="i"
role="button"
tabIndex="0"
className="sf-dropdown-toggle sf2-icon-caret-down"
title={gettext('More Operations')}
aria-label={gettext('More Operations')}
onClick={this.onDropdownToggleClick}
onKeyDown={this.onDropdownToggleKeyDown}
data-toggle="dropdown"
aria-haspopup={true}
style={{'minWidth': '0'}}
/>
<DropdownMenu>
{operations.map((item, index)=> {