WAIT: ID changed during css editting

Please check this issue. ID will change during editting:

Hi @Newbie,

do you know how to replicate this every time? I’ve tried switching from element to element and changing the CSS in between but could not replicate the issue.

Best regards,
Matej

Hi @Matej ,

I’ve updated to 2.0 final. Just tried to replicate the issue and failed.

But it’s worth noting that “%root%” sometimes changes ID at editing the custom css. I noticed this long time ago before 2.0 RC.

Best Regards,

Rhett

Hi,

I’m happy to hear that it’s working with 2.0. But to resolve the issue, we will need reproducible steps, so if it ever happens, please try to remember the last steps you take so that we can try to replicate it.

I hope that it will not happen anymore though. :crossed_fingers:

Thank you.

1 Like

Hey i have another bug - not sure if related but im unable to set a custom id on a div element inside a component - i set the element to custom h2 in this case and wanted to set an id but can only set a class - bricks 2.0 latest version

image

Component elements have no ID’s - classes only. It’s not a bug, it’s a feature :slight_smile:

Oh - i wanted to set an id on a div which will be the title of an article element inside a grid so i can set aria-labelledby=“title-grid-element-ID” dynamic to be compliant with the super cool European Accessibility Act :confused:

You could set an ID as an attribute, which will work inside components.

But the idea of components is re-usability, and by doing this you’d have to make sure you never use this same component on the same page, otherwise they’ll have the same ID.

The other option is to apply both the ID and your aria label via JS.

I do think there’ll need to be some sort of ‘instance specific ID system’ to more easily solve this type of thing, a dynamic tag maybe for adding IDs that combine the element ID and component instance ID.

True, but you could connect a text property with the id of the element inside the component and make sure to use some dynamic thing like {post_id} - then u could use the component even several times as u can just change the “base id” for each component and for each dynamic thing you would have the id.
but yeah in the end as u said i could use the attribute or in my case i already decided to go with aria-label on the article and just add the title there again which is compliant aswell