Add jsx-a11y eslint plugin (#7434)
* add matrix-org a11y eslint plgin Signed-off-by: Kerry Archibald <kerrya@element.io> * add eslint a11y, enable and fix anchor-has-content rule Signed-off-by: Kerry Archibald <kerrya@element.io> * enable and fix jsx-a11y/no-redundant-roles Signed-off-by: Kerry Archibald <kerrya@element.io> * remove debug Signed-off-by: Kerry Archibald <kerrya@element.io> * i18n Signed-off-by: Kerry Archibald <kerrya@element.io> * use jsx-a11y via matrix-org-eslint Signed-off-by: Kerry Archibald <kerrya@element.io>
This commit is contained in:
parent
03f5a3c3e6
commit
846fbfa2a0
8 changed files with 122 additions and 12 deletions
|
@ -20,6 +20,7 @@ import classNames from 'classnames';
|
|||
|
||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
||||
import { MatrixClientPeg } from "../../../MatrixClientPeg";
|
||||
import { _t } from '../../../languageHandler';
|
||||
|
||||
interface IProps {
|
||||
mxEvent: MatrixEvent;
|
||||
|
@ -75,9 +76,9 @@ export default class ViewSourceEvent extends React.PureComponent<IProps, IState>
|
|||
|
||||
return <span className={classes}>
|
||||
{ content }
|
||||
<a
|
||||
<button
|
||||
title={_t('toggle event')}
|
||||
className="mx_ViewSourceEvent_toggle"
|
||||
href="#"
|
||||
onClick={this.onToggle}
|
||||
/>
|
||||
</span>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue