A11y: Enable jsx-a11y/interactive-supports-focus (#57391)

* first batch of fixes for interactive-supports-focus

* remove role and aria attributes since this won't be focusable to a screenreader anyway
This commit is contained in:
Ashley Harrison
2022-10-21 13:52:46 +01:00
committed by GitHub
parent 9fb6cdae8a
commit 7e631e7239
7 changed files with 14 additions and 12 deletions
@@ -146,9 +146,7 @@ export class UnthemedSpanDetailRow extends React.PureComponent<SpanDetailRowProp
<span>
<span
className={styles.expandedAccent}
aria-checked="true"
onClick={this._detailToggle}
role="switch"
style={{ borderColor: color }}
data-testid="detail-row-expanded-accent"
/>