Frist:
When i click any element, the Structure panel is open and jump there. Its great and working good.
But It cant make with Accordion Element. Only open or close the accordion, and not select (and jump to the right place in structure panel) the element.
Second:
I use in Accordion > Content padding values to make better visual design.
BUT, its not good solution, if the content is list. In mobile view it is very ugly.
But if I set the padding to “0” every side its not good. So, if i use list in content the mobile view I have to use only padding-left:0
But it is not good solution again, because if in another accordion tab doesnt has list, the padding is gone.
So I tried an alternative solution.
I made custom CSS (Bricks use “ul” for accordion tabs) But it is full push away all of accordion element with 15px.
you can e.g. right click (or ctrl+click) to select the accordion in the structure panel.
you generally overwrite the ul element, but overlook the fact that the accordion itself is an ul element. Accordingly, you should target only the ul inside of the accordion: .brxe-accordion ul {...}.
Yes, the right click is working, but i think this is not the best solution, because every other elements working with simple clicks.
I tried you double click and made a video from the glitch.
Only work the simple left click, if I can target area between two accodriond. Any other situation not working.
Yes I know, a made globally change with “ul” css overwrite, and i working in future what you suggested but btw the default problem is not gone with that. In accordion very frustrating glitch the ul-s padding problem.
Yes, but the other elements cannot be “opened” and do not perform a “task” either. That’s the difference.
Then you are still doing something wrong or do not understand the padding-inline property correctly. It is added by the browser, and if you don’t want it or want it differently, you have to overwrite it accordingly. The exact value depends on your font size, among other things.
I think it’s just because of my bad English that I can’t express it, sorry.
By “…btw the default problem is not gone with that”, I mean that the conceptual error still exists because I write the custom CSS as you (correctly) suggested.
It’s strange that the accordion boxes are built with the “ul” command, and if I use the accordion elements’ own padding fields, it has a negative effect on the “ul li” list inside the accordion element.
That’s what I meant by “the problem hasn’t gone away”
It’s all good, we both try to understand what the other means, that’s the main thing
The bullet points don’t care about the padding, they ignore it completely. This is because list-style-position: outside;. You can use inside and see if that makes more sense for your situation.