theme_filter_tips is one of those rather neglected theme functions that really needs to revamped - I know its late and could be bumped to D8, however its also a pretty easy change to make this 1) more accessible and 2) actually themeable. Right now its not really themeable because there are no classes on the UL elements, so its indistinguishable from any other UL (for all intensive purposes).
I propose we change it to have DIV wrappers, proper heading levels and classes to make it all nice and themeable with CSS only.
This cropped up after I was trying to theme the compose tips page for Bartik and found it was not really doable because of the lack of classes and the crappy structure - I thought about overriding the theme function but that seems weird that our core theme has to override a theme function just to be able to theme something?
I'm putting this in as a bug because the structure of this is not great and should have proper heading levels (we just did this for the short tips that appear below form elements, seems to follow on that the compose tips page should be the same).
Posting a patch for review and discussion.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | theme_filter_tips_3.patch | 1.19 KB | Jeff Burnz |
| #5 | after-patch-theme_filter_tips.png | 135.12 KB | Jeff Burnz |
| #2 | theme_filter_tips_2.patch | 1.19 KB | Jeff Burnz |
| theme_filter_tips.patch | 1.15 KB | Jeff Burnz |
Comments
Comment #1
Jeff Burnz commentedbot...
Comment #2
Jeff Burnz commentedDammit, wrong patch - this is the one...
Comment #3
Jeff Burnz commentedEven I can see that this should be...
Powered by Dreditor.
Comment #4
moshe weitzman commentedIs there some way to get the multiple case to use the same markup as the single case. Not a big deal.
Comment #5
Jeff Burnz commentedI started out going that route but thought that might be too much to get through for D7 so punted for a more simple markup change, something to think about though.
Cleaning up my patch and adding an "after" screenshot (bartik).
Comment #6
moshe weitzman commentedbetter
Comment #7
dries commentedI've no problems with this patch and it cleans up a few things. Committed to CVS HEAD.