Nav Block: Remove empty submenu description p-tag

When no description is chosen for submenu items the empty p-tag still remains in the html.

I noticed because I wanted to create a space between the submenu label and the description. For that I applied a margin-top to the description element. Problem is that the margin is applied even when no description exists. I sure can achieve this with custom CSS but maybe removing the unused p-tag is something you might want to consider.

As a temporary solution until this is fixed, it is possible to remove the p tag from the document flow using display: none; in a relative style targeting p:empty.

Good find @Jonas. Probably rather a bug imo and as @StrangeTech supposing as well.
Nonetheless, voted.

That’s interesting. Didn’t know this was possible! Thanks for that! My approach was pretty complicated^^

@Marius, was debating whether to publish this in bugs or feature request but opted for the later :slight_smile:

Added/fixed with 1.2.9.7.2 :+1:

2 Likes