1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-15 23:00:57 +00:00

[a11y] added support for 'keyboard access' to 'share admin libraries/folders/links' & 'select editor'

This commit is contained in:
llj
2021-09-24 17:11:14 +08:00
parent aeae8d3bfd
commit 00d8b28c33
5 changed files with 15 additions and 12 deletions

View File

@@ -193,7 +193,7 @@ class Item extends Component {
share_permission = share_permission.slice(7);
}
const desktopItem = (
<tr onMouseEnter={this.onMouseEnter} onMouseLeave={this.onMouseLeave}>
<tr onMouseEnter={this.onMouseEnter} onMouseLeave={this.onMouseLeave} onFocus={this.onMouseEnter}>
<td><img src={iconUrl} title={iconTitle} alt={iconTitle} width="24" /></td>
<td><Link to={folderUrl}>{item.folder_name}</Link></td>
<td>
@@ -210,7 +210,7 @@ class Item extends Component {
onPermissionChanged={this.changePerm}
/>
</td>
<td><a href="#" className={`action-icon sf2-icon-x3 ${isOpIconShown ? '': 'invisible'}`} title={gettext('Unshare')} onClick={this.unshare}></a></td>
<td><a href="#" role="button" aria-label={gettext('Unshare')} className={`action-icon sf2-icon-x3 ${isOpIconShown ? '': 'invisible'}`} title={gettext('Unshare')} onClick={this.unshare}></a></td>
</tr>
);