I’m using Bootstrap 4 for my websites layout, and recently wanted to create a nested Table of Content.
Considering https://graphicdesign.stackexchange.com/help/on-topic, I’d say this is about
the look & feel aspect of web design;
A nested table of content is basically a table of content with topics, subtopics, subsubtopics etc…
So, here are my two concepts, using nested list groups; which do you think is better, especially taking into account intuitivity, what should I change ? How do you feel about the use of colors & spacing ?
How should I implement the nesting ? Are they suited for mobiles ?
The purpose of a hierarchy is to visual separate contents which may otherwise be confusing.
If there are main topics, then several sub-areas under each topic a visual hierarchy assists the user in distinguishing different topics quickly, then being able to “tunnel down” to more specific subjects related to that main topic.
However, if there are no sub-categories and there are only main topics, any visual hierarchy may lead a user to think some topics are more important than others, when they are not.
Given the simple list of 4 topics, there is no need for any visual hierarchy beyond the order the topics are stacked. I would remove all indents and nesting. They are entirely unwarranted in my opinion.
Simple, clean, clear.
If you were to have sub topics, an easy way to handle it for the web/mobile is via expanding divs with an indicator that the topic expands….
Essentially it all boils down to a menu or navigation tree. That’s all a TOC really is. So don’t do anything in a TOC that you wouldn’t do in a menu.