Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

render Id as attribute in svg items #135

Closed
MrMoronIV opened this issue Mar 21, 2024 · 3 comments
Closed

render Id as attribute in svg items #135

MrMoronIV opened this issue Mar 21, 2024 · 3 comments

Comments

@MrMoronIV
Copy link

Hi,

Could you add the id of the task, switch, any element in general to the group or rect of the svg items as an attribute? This way we can target it with CSS, thanks!

@b4rtaz
Copy link
Collaborator

b4rtaz commented Mar 21, 2024

Hello @MrMoronIV!

Currently, the designer is adding a type of a step to the class list (sqd-type-{type}). Do you need an id, or a task type?

@MrMoronIV
Copy link
Author

I need the actual internal id of the task etc. on the svg element :)

@b4rtaz
Copy link
Collaborator

b4rtaz commented Apr 30, 2024

The 0.19.4 version now generates the data-step-id attribute for root <g> elements of step components. Example CSS selector:

.sqd-workspace-canvas g[data-step-id="6cc1da8be15b9c3173a2effc09705c2e"] rect {fill: red !important;}

@b4rtaz b4rtaz closed this as completed Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants