Closed 36degrees closed 3 years ago
The issue is visible in the spec:
The render_page_tree
method called by multi_page_table_of_contents
manually adds the outer <ul>
so possibly the single_page_table_of_contents
method just needs to do the same…?
We should probably add an example of a non multipage nav to the 'example' docs, although at the minute this is configured at the site level rather than per page.
There’s no outer
<ul>
whenmultipage_nav
isfalse
– it jumps straight from the<nav>
to the<li>
.This causes rendering issues, as seen in https://github.com/alphagov/gds-way/pull/632.
Before
After