Style classes not applying to disabled numeric entry fields

Version 8.1.25.

I am having issues with numeric entry fields not applying style classes when they are not enabled. In this example my style class is applying a background colour, which works when the entry field is enabled but not when it is disabled. Interestingly, if I apply a background colour directly on the disabled entry field rather than using a style class, it seems to work. I don't have this issue with other perspective components (e.g. text field), presumably this is not the intended behaviour?

Screenshot 2023-08-18 140253
Screenshot 2023-08-18 140308
Screenshot 2023-08-18 140325
Screenshot 2023-08-18 140418

Hello,

Have you tried adding an element state disabled in your style class and set the background color you want for disabled state in the style class?

Frank

1 Like

Thank you, that seemed to work. Interesting that this only was required for numeric entry and not text field, button etc.