Unverified Commit b6d043fc authored by Kyle Keating's avatar Kyle Keating Committed by GitHub

Merge pull request #1761 from hypothesis/eslint-a11y-help-panel

Fix eslint issues in HelpPanel component
parents 542ae6c8 650d94ba
...@@ -105,34 +105,30 @@ function HelpPanel({ auth, session }) { ...@@ -105,34 +105,30 @@ function HelpPanel({ auth, session }) {
</h3> </h3>
<div className="help-panel__footer"> <div className="help-panel__footer">
{activeSubPanel === 'versionInfo' && ( {activeSubPanel === 'versionInfo' && (
// FIXME-A11Y <button
// eslint-disable-next-line jsx-a11y/anchor-is-valid
<a
href="#"
className="help-panel__sub-panel-link" className="help-panel__sub-panel-link"
onClick={e => openSubPanel(e, 'tutorial')} onClick={e => openSubPanel(e, 'tutorial')}
aria-label="Show tutorial panel"
> >
<div>Getting started</div> Getting started
<SvgIcon <SvgIcon
name="arrow-right" name="arrow-right"
className="help-panel__sub-panel-link-icon" className="help-panel__sub-panel-link-icon"
/> />
</a> </button>
)} )}
{activeSubPanel === 'tutorial' && ( {activeSubPanel === 'tutorial' && (
// FIXME-A11Y <button
// eslint-disable-next-line jsx-a11y/anchor-is-valid
<a
href="#"
className="help-panel__sub-panel-link" className="help-panel__sub-panel-link"
onClick={e => openSubPanel(e, 'versionInfo')} onClick={e => openSubPanel(e, 'versionInfo')}
aria-label="Show version information panel"
> >
<div>About this version</div> About this version
<SvgIcon <SvgIcon
name="arrow-right" name="arrow-right"
className="help-panel__sub-panel-link-icon" className="help-panel__sub-panel-link-icon"
/> />
</a> </button>
)} )}
</div> </div>
</div> </div>
......
@use "../../mixins/buttons";
@use "../../variables" as var; @use "../../variables" as var;
.help-panel { .help-panel {
...@@ -29,6 +30,7 @@ ...@@ -29,6 +30,7 @@
} }
&__sub-panel-link { &__sub-panel-link {
@include buttons.reset-native-btn-styles;
display: flex; display: flex;
align-items: center; align-items: center;
margin-left: auto; margin-left: auto;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment