Call view accessibility fixes (#7439)

This commit is contained in:
Michael Telatynski 2022-01-04 08:57:46 +00:00 committed by GitHub
parent cdbe59900c
commit 44d7d74949
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 22 additions and 28 deletions

View file

@ -16,6 +16,7 @@ limitations under the License.
import * as React from "react";
import { _t } from "../../../languageHandler";
import AccessibleButton, { ButtonEvent } from "./AccessibleButton";
interface IProps {
@ -26,7 +27,11 @@ interface IProps {
export default class DialPadBackspaceButton extends React.PureComponent<IProps> {
render() {
return <div className="mx_DialPadBackspaceButtonWrapper">
<AccessibleButton className="mx_DialPadBackspaceButton" onClick={this.props.onBackspacePress} />
<AccessibleButton
className="mx_DialPadBackspaceButton"
onClick={this.props.onBackspacePress}
aria-label={_t("Backspace")}
/>
</div>;
}
}