Response title
This is preview!
Yes, I like this approach too. What I don't like is a necessity to somehow calculate structural parameters of the widget header while they could well have been put in some predefined class in the framework. Maybe we should add something like "ui-widget-header-dimensions" (or name it any other appropriate way) which will hold all necessary parameters, so that if added to the header it would make it look consistently with other widget headers. Is that feasible?This clean separation of theme styles vs. widget structural styles is important because if we set padding, margins and dimensions in the theme classes, we'd need to keep track of all the overrides we'd need to make at the widget level and it could get messy in a hurry.
I've already done something to that effect, but I'm worried about a probable necessity to change parameters of that structural class in future in case if you change something in jQuery UI widgets, to make my own widgets look consistent with them again. Is there any guarantee that "standard" widget headers will stay the same size in future and throughout all themes? I'd like to have a simple way to make all headers consistent.In your case, if you wanted to follow jQuery UI's class conventions, you'd assign two classes on your header: a structural style (my-header) and a theme class that maps to it's role (ui-widget-header).
Yes, but above I mentioned font weight and color which both are defined in the "ui-widget-header" class.BTW - font family and size is set by the "ui-widget" class, not at a theme lever or widget level.
© 2013 jQuery Foundation
Sponsored by and others.