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
c5642ed2
Unverified
Commit
c5642ed2
authored
Apr 02, 2020
by
Lyza Gardner
Committed by
GitHub
Apr 02, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1985 from hypothesis/annotation-semantic-elements
Adjust some HTML semantic structural elements
parents
e5777d43
7586d1bf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
annotation.js
src/sidebar/components/annotation.js
+3
-3
thread.js
src/sidebar/components/thread.js
+2
-2
No files found.
src/sidebar/components/annotation.js
View file @
c5642ed2
...
...
@@ -92,8 +92,8 @@ function Annotation({
const
onToggleReplies
=
()
=>
setCollapsed
(
annotation
.
id
,
!
threadIsCollapsed
);
return
(
/* eslint-disable-next-line jsx-a11y/no-
static
-element-interactions */
<
div
/* eslint-disable-next-line jsx-a11y/no-
noninteractive
-element-interactions */
<
article
className
=
{
classnames
(
'annotation'
,
{
'annotation--reply'
:
isReply
(
annotation
),
'is-collapsed'
:
threadIsCollapsed
,
...
...
@@ -144,7 +144,7 @@ function Annotation({
)}
<
/div
>
<
/footer
>
<
/
div
>
<
/
article
>
);
}
...
...
src/sidebar/components/thread.js
View file @
c5642ed2
...
...
@@ -42,7 +42,7 @@ function Thread({ showDocumentInfo = false, thread, threadsService }) {
const
onToggleReplies
=
()
=>
setCollapsed
(
thread
.
id
,
!
thread
.
collapsed
);
return
(
<
div
<
section
className
=
{
classnames
(
'thread'
,
{
'thread--reply'
:
thread
.
depth
>
0
,
'is-collapsed'
:
thread
.
collapsed
,
...
...
@@ -96,7 +96,7 @@ function Thread({ showDocumentInfo = false, thread, threadsService }) {
<
/ul
>
)}
<
/div
>
<
/
div
>
<
/
section
>
);
}
...
...
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