Closed bjornbjorn closed 1 day ago
It actually looks like it's the flux:menu.radio
causing it, with this code the spacing shows up:
<flux:menu.group class="items-start" heading="Page settings">
<flux:menu.item>
Test
</flux:menu.item>
<flux:menu.submenu heading="Sort by">
<flux:menu.radio checked>Name</flux:menu.radio>
<flux:menu.radio>Date</flux:menu.radio>
<flux:menu.radio>Popularity</flux:menu.radio>
</flux:menu.submenu>
</flux:menu.group>
But if I remove the <flux:menu.radio>
elements it goes away:
<flux:menu.group class="items-start" heading="Page settings">
<flux:menu.item>
Test
</flux:menu.item>
<flux:menu.submenu heading="Sort by">
</flux:menu.submenu>
</flux:menu.group>
Good catch - it was a bad CSS selector. Fixed (will be in the next release):
To reproduce use this code:
You'll see that the group heading "Page settings" has space on the left side:
It's caused by the display:block which overrides the default 'hidden' on the div, if you toggle this off it looks correct: