Accessibility: Make row actions keyboard accessible (#63367)

make row actions keyboard accessible
This commit is contained in:
Ashley Harrison
2023-02-23 15:20:59 +00:00
committed by GitHub
parent 85c81ae080
commit a48793b542
2 changed files with 5 additions and 7 deletions

View File

@@ -101,6 +101,9 @@ export class DashboardRow extends React.Component<DashboardRowProps> {
</div>
)}
{this.props.panel.collapsed === true && (
/* disabling the a11y rules here as the button handles keyboard interactions */
/* this is just to provide a better experience for mouse users */
/* eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events */
<div className="dashboard-row__toggle-target" onClick={this.onToggle}>
&nbsp;
</div>