Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document Outline: Restructured buttons to anchors #7170

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
update/document-outline.markup: Changed button to hyperlink markup
  • Loading branch information
Andrew Nevins committed Jun 5, 2018
commit d89bdd96d66283aede8d1cbe5a92d5d0f1114d2a
5 changes: 3 additions & 2 deletions editor/components/document-outline/item.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ const TableOfContentsItem = ( {
}
) }
>
<button
<a
className="document-outline__button"
onClick={ onClick }
href="#"
>
<span className="document-outline__emdash" aria-hidden="true"></span>
{
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