[wp-trac] [WordPress Trac] #18909: Bundled jQuery UI should have CSS

WordPress Trac wp-trac at lists.automattic.com
Sat Dec 10 04:42:08 UTC 2011


#18909: Bundled jQuery UI should have CSS
--------------------------------------+------------------------------
 Reporter:  helenyhou                 |       Owner:
     Type:  enhancement               |      Status:  assigned
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  General                   |     Version:  3.3
 Severity:  normal                    |  Resolution:
 Keywords:  ui-feedback dev-feedback  |
--------------------------------------+------------------------------
Changes (by helenyhou):

 * owner:  helenyhou =>


Comment:

 Replying to [comment:11 WraithKenny]:
 > A concern would be that when ui updates, the theme would have to be re-
 rolled (wouldn't it?) and whatever changes you've made updated also.

 That's a good point. I haven't seen jQuery UI updates that are really
 drastic, but it would be some maintenance to keep track of any changes.
 Splitting the stylesheets out into structure and then color variants a la
 the WP admin sheets seems like it should help keep it a light task,
 perhaps not much more than grabbing the latest. I did in fact start from a
 base of Smoothness, which works out well with the default gray scheme, but
 not so much with blue. Would love to use images for the icons only,
 though, which UI doesn't, not even for flat backgrounds (ugh).

 > Any thoughts on "CSS Scope" so that core/themes/plugins can avoid
 conflicts?

 I've been thinking that I want to see if the idea in #18380 about admin
 colors (which I really like) gets revisited and go from there, especially
 regarding the split of colors. Since by default everything is classes, it
 should be easy to override as needed. I didn't notice any core conflicts
 with my demo plugin the last time I looked, which I should dig back up and
 post here.

 Overall, what I notice is that there seems to be some expectation that the
 ability to enqueue UI bits means that they will "just work" when used,
 which is not really the case with jQuery UI. Given the things and
 inconsistencies that often happen when devs have free reign (theme options
 come to mind), it still seems like a good idea to have kind of base
 included in core.

 Maybe a dumb question, but is it possible to have a JS enqueue also
 enqueue CSS somehow?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18909#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list