NO BUG: Item styles in dropdown element do not work without links

Browser: Chrome 110
OS: macOS / Windows / Linux / etc.
URL: Link to a page that illustrates this issue
Video: Short screen recording that illustrates this issue (free tool: jam.dev)

Hello bricks team,

In the dropdown element, if the link is enabled, the controls for the item in the content work fine. But if we disable the link, the styles no longer work. Is this a bug? It would be great if they targeted the li item styles when the link was disabled.

Best regards

Hi Jolia,
Thanks so much for your report!

Can you please show us what settings you are using? As far as I can see, the item styles (2.2 RC2) are working for me…

Best regards,
timmse

Hi @timmse,

This problem seems to have been fixed in rc 2.2. Whether the link is active or not, the items in the front-end a tag right?

To be honest, I still don’t quite understand what the problem is/was, but if you say it’s fixed, then everything’s fine, right?

That’s why it’s always a good idea to test with the latest version, even if it’s an alpha, beta, or RC.

I’m so sorry, I made a complete mistake and I’m trying to correct my explanation.

Currently, if the nav link elements in the dropdown content have links, the style controls in Dropdown > Content > Item work fine. But if the elements within the dropdown content do not have links, the Item style controls will no longer work because Item styles target the a tag. So, wouldn’t it be better to target the li tag instead of the a tag? In this case, even if the elements within the dropdown content do not have links, the item styles will work fine.

So I’ll fix it. If we consider this a bug, it still happens in version 2.2 rc.

We assume you use links in your dropdown, as this is probably the most common use case.

If you have other use cases (which we cannot generally anticipate), you must address them accordingly. Overall, I don’t see any bug here.

1 Like