[UI] Remove Empty Bullet Markers After Tooltip in Table of Contents
Description
On the Sistent Tooltip documentation page, two extra empty bullet markers appear immediately after the Tooltip entry in the left-hand Table of Contents sidebar.
There are currently no elements listed after Tooltip, so these markers appear as unnecessary empty list items and create visual clutter in the sidebar.
Steps to Reproduce
- Visit [Sistent – Tooltip Documentation](https://layer5.io/projects/sistent/components/tooltip/code).
- Expand the Components section in the Table of Contents sidebar.
- Scroll to the bottom of the component list.
- Observe the two empty bullet markers appearing immediately after Tooltip.
Actual Behaviour
Two empty bullet markers are displayed below the Tooltip entry, despite there being no corresponding elements or links.
Expected Behaviour
The empty bullet markers should be removed so that the Table of Contents ends cleanly after the Tooltip entry, without displaying unnecessary list markers.
Screenshots
The screenshots below illustrate the issue:
- The first screenshot shows the collapsed Components section.
- The second screenshot shows the expanded Components section, where the two extra empty bullet markers are visible.
Additional Context
This appears to be a minor UI issue in the Table of Contents sidebar, potentially caused by empty list elements being rendered after the last component entry.
Hi, could this be assigned to me? I'd like to fix it.
Hi! I’d like to work on this. I work with React and CSS day to day, and I’ll track down where the empty TOC list items come from on the Sistent Tooltip page and fix them at the source. Could you please assign it to me?
Anyone can work on this ask maintainers to assign this to you in slack...
I'd like to work on this. The empty bullets look like the TOC list is showing items with no title after Tooltip. I'll find the TOC component and filter them out. Is it still open?