Remove alt, use aria-label

This commit is contained in:
Andrew Morgan 2020-06-26 01:18:02 +01:00
parent 87f961df3f
commit b00d822bc0
5 changed files with 6 additions and 8 deletions

View file

@ -20,7 +20,7 @@ import PropTypes from "prop-types";
import {_t} from "../../../languageHandler";
import SettingsStore from "../../../settings/SettingsStore";
const Spinner = ({w = 32, h = 32, imgClassName, alt, message}) => {
const Spinner = ({w = 32, h = 32, imgClassName, message}) => {
let divClass;
let imageSource;
if (SettingsStore.isFeatureEnabled('feature_new_spinner')) {
@ -39,7 +39,7 @@ const Spinner = ({w = 32, h = 32, imgClassName, alt, message}) => {
width={w}
height={h}
className={imgClassName}
alt={alt || _t("Loading...")}
aria-label={_t("Loading...")}
/>
</div>
);
@ -48,7 +48,6 @@ Spinner.propTypes = {
w: PropTypes.number,
h: PropTypes.number,
imgClassName: PropTypes.string,
alt: PropTypes.string,
message: PropTypes.node,
};