79231234

Date: 2024-11-27 17:08:10
Score: 3
Natty:
Report link

How are we supposed to override the classes with custom styles if random numbers keep being added to every class? Am I missing something?

I'm working on a project running MUI 4 and I'm struggling to override the styles of some of the components.

Attached here is one component that I wish to override. In error state, the outline/border of the text field and the legend (the label that shrinks to the top left of the notched outline) is in default red color and I wish to override and change them to a different color.

https://i.sstatic.net/jyMcAIBF.png

Some guidance would be very much appreciated.

Reasons:
  • Blacklisted phrase (1): appreciated
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How are we
  • Low reputation (1):
Posted by: Lyo