Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The classes used to style menus was changed from <div class="menu"><ul>
to <ul class="menu">
.
The book module still uses <div class="menu"><ul>
, therefore no CSS class in drupal.css matches. The attached patch applies the same change made for menus to the book module, that is use <ul class="menu">
.
However, I have a doubt: wouldn't it be better to use 'item-list' to render the book index?
Comment | File | Size | Author |
---|---|---|---|
#2 | book_menu_class2.patch | 494 bytes | markus_petrux |
book_menu_class.patch | 321 bytes | markus_petrux | |
Comments
Comment #1
Dries CreditAttribution: Dries commentedCommitted to HEAD. Thanks.
Comment #2
markus_petrux CreditAttribution: markus_petrux commentedSorry, I missed one thing in my previous patch.
To match the way the new menu system works, inner ULs should also be of class="menu". Please, see new patch attached to this comment.
PS: Although, the first patch has been applied, I didn't wanted to open a new issue.
Comment #3
Dries CreditAttribution: Dries commentedAwesome. Commmitted.
Comment #4
(not verified) CreditAttribution: commented