AusDTO / gov-au-ui-kit

MOVED TO https://github.com/govau/uikit/
https://github.com/govau/uikit/
MIT License
19 stars 12 forks source link

Nested index links all appear on the same level #164

Open tessereth opened 8 years ago

tessereth commented 8 years ago

What I did

Trying to create a table of contents from a page with nested heading levels, I generated the following markup:

  <nav class="index-links">
    <ul>
      <li>
        <a href="#fruit">Fruit</a>
        <ul>
          <li>
            <a href="#apples">Apples</a>
          </li>
          <li>
            <a href="#oranges">Oranges</a>
          </li>
        </ul>
      </li>
      <li>
        <a href="#animals">Animals</a>
        <ul>
          <li>
            <a href="#dogs">Dogs</a>
          </li>
          <li>
            <a href="#cats">Cats</a>
          </li>
        </ul>
      </li>
    </ul>
  </nav>

What browser and device I was using

Chrome desktop

What I expected to see

I expected to see the sublists appropriately indented

What I saw

screen shot 2016-07-14 at 11 33 13 am

TrebBrennan commented 8 years ago

@tessereth Like this example? https://en.wikipedia.org/wiki/Bridges_of_York

tessereth commented 8 years ago

Something like that would be great

klepas commented 8 years ago

I’ve added this to Jira, under DESIGN-202.

hannah-ustwo commented 8 years ago

[STATUS UPDATE] Going to be deprioritizing this, as it is not a feature needed for Aug 30th's private beta

klepas commented 8 years ago

Update: guidance from Donna is that these ToC/Index links/Contents links feature should only list one tier of items on the page, but there will be instances where we need to provide a full ToC.

I’ve close this as a bug, and I’ve created a new Jira tix/story for a more elaborate ToC (DESIGN-459).

klepas commented 8 years ago

Actually, re-opening and marking as not a bug. Soz.