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 }) {
</h3>
<div className="help-panel__footer">
{activeSubPanel === 'versionInfo' && (
// FIXME-A11Y
// eslint-disable-next-line jsx-a11y/anchor-is-valid
<a
href="#"
<button
className="help-panel__sub-panel-link"
onClick={e => openSubPanel(e, 'tutorial')}
aria-label="Show tutorial panel"
>
<div>Getting started</div>
Getting started
<SvgIcon
name="arrow-right"
className="help-panel__sub-panel-link-icon"
/>
</a>
</button>
)}
{activeSubPanel === 'tutorial' && (
// FIXME-A11Y
// eslint-disable-next-line jsx-a11y/anchor-is-valid
<a
href="#"
<button
className="help-panel__sub-panel-link"
onClick={e => openSubPanel(e, 'versionInfo')}
aria-label="Show version information panel"
>
<div>About this version</div>
About this version
<SvgIcon
name="arrow-right"
className="help-panel__sub-panel-link-icon"
/>
</a>
</button>
)}
</div>
</div>
......
@use "../../mixins/buttons";
@use "../../variables" as var;
.help-panel {
......@@ -29,6 +30,7 @@
}
&__sub-panel-link {
@include buttons.reset-native-btn-styles;
display: flex;
align-items: center;
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