Assign trust level specific class to the <body>


(Dylan Damsma) #1

Is it possible to assign a css class to the <html> or <body> tag based on the users trust level (i.e. through javascript)?

This way we can show a different banner message to users that are active vs new.

Best,
Dylan


#2

I like this idea :+1:


(Dylan Damsma) #3

Yep, it would enable some cool use-cases for us :slight_smile:


(Sam Saffron) #4

This can be done in a theme component, we ship trust level in current user serializer.