mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-06 09:21:54 +00:00
[file view] added 'aria-label' to the operation buttons
This commit is contained in:
@@ -107,7 +107,7 @@ class FileToolbar extends React.Component {
|
|||||||
|
|
||||||
{(canEditFile && !err) &&
|
{(canEditFile && !err) &&
|
||||||
( this.props.isSaving ?
|
( this.props.isSaving ?
|
||||||
<button type={'button'} className={'btn btn-icon btn-secondary btn-active'}>
|
<button type={'button'} aria-label={gettext('Saving...')} className={'btn btn-icon btn-secondary btn-active'}>
|
||||||
<i className={'fa fa-spin fa-spinner'}/></button> :
|
<i className={'fa fa-spin fa-spinner'}/></button> :
|
||||||
(
|
(
|
||||||
this.props.needSave ?
|
this.props.needSave ?
|
||||||
@@ -149,7 +149,7 @@ class FileToolbar extends React.Component {
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<ButtonDropdown isOpen={moreDropdownOpen} toggle={this.toggleMoreOpMenu}>
|
<ButtonDropdown isOpen={moreDropdownOpen} toggle={this.toggleMoreOpMenu}>
|
||||||
<DropdownToggle>
|
<DropdownToggle aria-label={gettext('More Operations')}>
|
||||||
<span className="fas fa-ellipsis-v"></span>
|
<span className="fas fa-ellipsis-v"></span>
|
||||||
</DropdownToggle>
|
</DropdownToggle>
|
||||||
<DropdownMenu right={true}>
|
<DropdownMenu right={true}>
|
||||||
|
@@ -47,6 +47,7 @@ class IconButton extends React.Component {
|
|||||||
className={className}
|
className={className}
|
||||||
tag="a"
|
tag="a"
|
||||||
href={this.props.href}
|
href={this.props.href}
|
||||||
|
aria-label={this.props.text}
|
||||||
>
|
>
|
||||||
{btnContent}
|
{btnContent}
|
||||||
</Button>
|
</Button>
|
||||||
@@ -57,6 +58,7 @@ class IconButton extends React.Component {
|
|||||||
id={this.props.id}
|
id={this.props.id}
|
||||||
className={className}
|
className={className}
|
||||||
onClick={this.props.onClick}
|
onClick={this.props.onClick}
|
||||||
|
aria-label={this.props.text}
|
||||||
>
|
>
|
||||||
{btnContent}
|
{btnContent}
|
||||||
</Button>
|
</Button>
|
||||||
|
Reference in New Issue
Block a user