I am making a calendar component in jQuery which I want to be styleable with theme-roller themes and any of the available jquery themes (smoothness, ui-ligtness, ui-darkness etc.). Using the different css classes ui-widget, ui-widget-container, ui-state-XXX I have something that works ok. The problem is that the background for some of the themes ends up looking weird because of the backgrounds position.
An sample is available here: http://jsfiddle.net/Ddn3t/1
However, note that I can’t realy use background-postion: bottom since if I change the theme I would need to alter that value to top instead.
For instance in this case: http://jsfiddle.net/Uasen/2
So I need a way to have the background be positioned properly for both cases.
The state classes are for clickable button-like elements, not really for anything else. They are the issue. If you remove them then everything will display fine. You probably should also add the ui-widget class to the outer element. ie.
@see Theme API