Hi all,

I was just working on some ListForm widgets and noticed that there's  
not a good way to target the label tags with specific CSS (well,  
there are surely ways in CSS using advanced selectors, but those are  
not quite reliable in the browsers yet).

Anyway, I'm looking to (1) target the label of a required field (to  
make it bold, for example), and also (2) to be able to style the  
label for a checkbox differently than a text field, for example.

I started working on a patch to widgets/forms.py and was able to add  
e.g. class="required for_checkbox" to the labels of a ListForm and  
TableForm and it worked. But then I forgot I'd done it and wiped it  
out while installing 1.0b1...  d'oh! Anyway, it wasn't much work so I  
can do it over easily, but I'm just curious if anyone else is  
interested in this? Any thoughts on what to name the classes it adds?

I'd really like to see this make it into 1.0 final, or 1.1. This  
seems important for TG playing well with Web Standards (unless I'm  
missing something really obvious).

--isaac


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to