Add aria attributes where possible (#156)

* Add aria attributes where possible

* Bump submodule to get aria translations
This commit is contained in:
Mitch Lillie 2021-02-06 12:20:41 -08:00 committed by GitHub
parent ef19b9f6b8
commit 04955cc45e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 137 additions and 19 deletions

View file

@ -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>