241
Views
4
Comments
Solved
Find all elements that use a certain CSS class
Question

I need to change a class in the global CSS file of my app. However, I need to know which elements use this class to check whether the change has any effects on other areas.

Is there a way to find all elements that use a certain CSS class?

UserImage.jpg
Steffen Kludt
Solution

The reason why I couldn't find it initially with any of the search options was that I was looking where the element was used (where the class is "hard coded"), but the class assigned happens somewhere else and once I navigated to the right place I could find the class via the search box.

2021-09-21 09-26-31
Aadhavan Shanmugam

Hi Steffen, 

You can search the class name in the service studio to find where the class is used. refer below screenshot

Thanks, Aadhavan S

UserImage.jpg
Steffen Kludt

Thanks for chipping in!

Your suggestion doesn't work for me though, because my class is NOT saved in the "Style Classes" field that's part of "Properties", but the class is used in the "Styles" tab (see screenshot).

The search feature doesn't find it here.

UserImage.jpg
Ellakkiya

Hello Steffen Kludt,

you can use the find and replace

Hope this helps!

Regards,

Ellakkiya.S

UserImage.jpg
Steffen Kludt
Solution

The reason why I couldn't find it initially with any of the search options was that I was looking where the element was used (where the class is "hard coded"), but the class assigned happens somewhere else and once I navigated to the right place I could find the class via the search box.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.