How Can I Override a custom style?

I want to override a custom style with

.LogType
.LogType > .Error

“LogType” is Parent
I have modify the Background Image Tint in Child,it don’t work.
I also try to modify other inline styles ,neither!
Can somebody help me ?

Can you paste the c# code / uxml that instantiates your elements? In uss, there are 3 types of selectors:

  • name (#my-element-name) which matches with VisualElement.name
  • class (.my-class-name) which matches against a VisualElement classList (AddToClassList, RemoveFromClassList/ GetClasses)
  • type, which will match against the c# Type of your element (Button, Label, etc)