Alternative selector for the code element

Hello bricks team, @Matej

As you know, in the code element, when we enable the Render without wrapper option, the style tab controls no longer work because there is no wrapper.

But it would be great if after enabling the Render without wrapper option, we could set an alternative selector. Then, the style tab controls in the code element would apply to this selector.

For example, as you can see in the screenshot below, I have placed the dynamic data {query_results_count_filter:bfhubu} in the code element and enabled the Render without wrapper option. Now if I put [data-brx-qr-count] in the alternative selector option, the tab controls will be styled on the dynamic data. I think this is a smart feature if it can be implemented.

you could set the code element to the specific top level element you want and exclude it in the executed code

Do you actually mean to put the code element in a wrapper and control its styling? If that’s what you mean, then I prefer to disable the Render without wrapper option.

Hi @Victor1999,

Wouldn’t it be the same if you targeted [data-brx-qr-count] from the parent element in this case? I think yes.

Matej

Hi @Matej,

Yes, it works well.

1 Like

Perfect then :slight_smile:

Matej

1 Like