Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
b6d043fc
Unverified
Commit
b6d043fc
authored
Feb 12, 2020
by
Kyle Keating
Committed by
GitHub
Feb 12, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1761 from hypothesis/eslint-a11y-help-panel
Fix eslint issues in HelpPanel component
parents
542ae6c8
650d94ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
12 deletions
+10
-12
help-panel.js
src/sidebar/components/help-panel.js
+8
-12
help-panel.scss
src/styles/sidebar/components/help-panel.scss
+2
-0
No files found.
src/sidebar/components/help-panel.js
View file @
b6d043fc
...
@@ -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
>
...
...
src/styles/sidebar/components/help-panel.scss
View file @
b6d043fc
@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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment