Skip to main content
1-Visitor
September 20, 2019
Solved

'CustomClass' not visible upon inspection

  • September 20, 2019
  • 1 reply
  • 2030 views

I have added a CustomClass to a datetimepicker widget. I then referenced my class in my css to make a background color change, and it wasn't working. Upon inspecting the element using my browser's inspection tools, I don't see the class anywhere in the html. If I specify a 'CustomClass' in a widget, shouldn't I see it upon inspection in the browser?

 

Anyone run into this before? Solutions? Or is this a know bug?

Best answer by raluca_edu

Hi,

 

You can see custom class in style sheet, see attachment.

 

1 reply

17-Peridot
September 23, 2019

Hi,

 

In some cases CSS class are overwritten during runtime.

Try to use !important in your CSS class to make it work.

 

Best regards,

Raluca Edu

ague1-VisitorAuthor
1-Visitor
September 23, 2019

I've added !important to the attribute itself (like: "background-color: pink !important;"), but it's the custom class name that's not even visible upon inspection.

 

For example, if I add this custom class, like this (or, see attachment if not downloading):

 

 

 

But when I go to inspect the page, 'test-class' is not visible as a class on any html. Rather, I can only see it being called on the style sheet. 

 

Is this expected behavior?

17-Peridot
September 23, 2019

Hi,

 

You can see custom class in style sheet, see attachment.