On Sep 9, 2006, at 7:41 PM, isaac wrote:

> 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?

Are you sure there are no classes already devised for required? (I  
can't look it up at the moment).

Also, when putting together a patch, you really want to work from the  
svn copy (and you can do setup.py develop to ensure that your code  
isn't overwritten by installing a new release).

Thanks for looking into this!

Kevin

--~--~---------~--~----~------------~-------~--~----~
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