Add aria attributes where possible (#156)
* Add aria attributes where possible * Bump submodule to get aria translations
This commit is contained in:
parent
ef19b9f6b8
commit
04955cc45e
19 changed files with 137 additions and 19 deletions
|
@ -2,6 +2,7 @@ import { Component, linkEvent } from 'inferno';
|
|||
import { pictrsUri } from '../env';
|
||||
import { UserService } from '../services';
|
||||
import { toast, randomStr } from '../utils';
|
||||
import { i18n } from '../i18next';
|
||||
|
||||
interface ImageUploadFormProps {
|
||||
uploadTitle: string;
|
||||
|
@ -48,7 +49,10 @@ export class ImageUploadForm extends Component<
|
|||
this.props.rounded ? 'rounded-circle' : ''
|
||||
}`}
|
||||
/>
|
||||
<a onClick={linkEvent(this, this.handleRemoveImage)}>
|
||||
<a
|
||||
onClick={linkEvent(this, this.handleRemoveImage)}
|
||||
aria-label={i18n.t('remove')}
|
||||
>
|
||||
<svg class="icon mini-overlay">
|
||||
<use xlinkHref="#icon-x"></use>
|
||||
</svg>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue