Unverified Commit c5642ed2 authored by Lyza Gardner's avatar Lyza Gardner Committed by GitHub

Merge pull request #1985 from hypothesis/annotation-semantic-elements

Adjust some HTML semantic structural elements
parents e5777d43 7586d1bf
......@@ -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>
);
}
......
......@@ -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>
);
}
......
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