I’m adding some stuff to the in the topic list. I need to apply CSS only to the categories that I’m supposed to be affecting.
I think I need to do that by adding a “can-rate” class to the <tr> of I the categories that I want to affect.
I think I can do it in my glimmer component (which might know if it should apply the change?), though I’d be just as happy to do it in the initializer.
It might be easier to just target the data-category-id attribute instead of trying to add a class to the <tr>.
If you need to add styles to the tr without the data-category-id, you might have some luck looking into how the Category Icons theme component changes the category links render (which affects everywhere). Something along the lines of adding the class/attribute to a child element and letting the style come up with some CSS (i.e. tr:has(> .some-class)).