As I mentioned in the other thread, I wouldn’t recommend using emotion cache to grab objects if you can avoid it.
The CSS I wrote above, applies styling to the whole chat message (which contains the user avatar). If you just want the avatar, make sure you use the data-testid since stChatMesageAvatarUser
is not a class. (You can’t select it by prefixing it will a period, you need [data-testid="stChatMessageAvatarUser"]
.