Skip to content

Commit

Permalink
Adjust document outline to use an a tag vs button
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Silverstein committed Oct 19, 2018
1 parent ce02ee2 commit b743cec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/editor/src/components/document-outline/item.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ const TableOfContentsItem = ( {
}
) }
>
<button
<a
href={ '#' + level }
className="document-outline__button"
onClick={ onClick }
>
Expand All @@ -50,7 +51,7 @@ const TableOfContentsItem = ( {
{ children }
</span>
<span className="screen-reader-text">{ __( '(Click to focus this heading)' ) }</span>
</button>
</a>
</li>
);

Expand Down
4 changes: 4 additions & 0 deletions packages/editor/src/components/document-outline/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
display: flex;
margin: 4px 0;

a {
text-decoration: none;
}

.document-outline__emdash::before {
color: $light-gray-500;
margin-right: 4px;
Expand Down

0 comments on commit b743cec

Please sign in to comment.