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

Should we add a button in the toc component to be able toggle the navigation ? #6

Open
ggrossetie opened this issue Jul 15, 2018 · 0 comments

Comments

@ggrossetie
Copy link

I'm working on a stylesheet factory that's compatible with a semantic HTML5 output.
One popular request is to be able to create an off-canvas Table Of Contents with a button to toggle it.

I think it will be easier to style the <button> if we put it outside the <nav> ?

<button aria-expanded="false">Table Of Contents</button>
<nav id="navigation">
  <ul>
    <li><a href="#section-1">Section 1</a></li>
    <li><a href="#section-2">Section 2</a></li>
    <li><a href="#section-3">Section 3</a></li>
    <li><a href="#section-4">Section 4</a></li>
  </ul>
</nav>

What do you think ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant