samuelet / indexmenu

A dokuwiki plugin to show a customizable and sortable index for a namespace.
http://dokuwiki.org/plugin:indexmenu
GNU General Public License v2.0
44 stars 42 forks source link

Extra 'collapsible' class on collapsible li-treeitems #316

Open nullester opened 1 month ago

nullester commented 1 month ago

Hi,

Just for extra CSS styling, it would be nice to have an extra class on the collapsible li-items.

Before:

<ul class="idx" role="tree">
    <li class="open" role="treeitem">
    ...

After:

<ul class="idx" role="tree">
    <li class="collapsible open" role="treeitem">
    ...

Reason. I'm hiding the default ::marker's and using custom ::before's in an extended theme with up and down arrows to make it clear these items are collapsible/expandible. But if the Item is not collapsible, I want to keep the regular bullet icon.

Thanks!