cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

'CustomClass' not visible upon inspection

SOLVED
Highlighted
Garnet

'CustomClass' not visible upon inspection

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?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: 'CustomClass' not visible upon inspection

Hi,

 

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

 

3 REPLIES 3

Re: 'CustomClass' not visible upon inspection

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

Re: 'CustomClass' not visible upon inspection

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?

Re: 'CustomClass' not visible upon inspection

Hi,

 

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