It would make styling the Captcha fieldset components much simpler if there was a CSS class or id assigned to the surrounding fieldset. I have created a patch that assigns a class to the fieldset, just in case somebody has more than one captcha on a page.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | captcha_class_2.patch | 770 bytes | soxofaan |
| captcha_class.patch | 388 bytes | davemybes |
Comments
Comment #1
robloachNice... Think should it be applied to the actual Captcha form too?
Comment #2
davemybes commentedThanks! I don't think its necessary as the fieldset wraps everything. Using that CSS declaration we can target everything inside.
Comment #3
robloachYes, but what if you're not using the fieldset? What if you're CAPTCHA description is an empty string, so that the CAPTCHA API doesn't display the form in a fieldset. Do you think we should apply the class to the element?
Comment #4
davemybes commentedAh, I see what you mean now. Sorry, I was being a bit dense.
Sure, it would make more sense to do it that way then. Maybe something along the lines of this:
This would then also wrap any description fieldset if one were present, so no need for my previous patch, I guess.
Comment #5
soxofaan commentedComment #6
robloach"captcha" Class All Around!
Comment #7
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.