logo       

Re: label for checkbox: msg#00010

web.dojo.devel

Subject: Re: label for checkbox

this is an updated patch, which includes modification to the test file as well

I also modified the check.gif to get rid of the extra space between
them (not included here)

In addition, this patch fixes this problem #1584 by using img tag
instead of span

(tested in IE 6/FF 1.5/OP 9. In Op9, there is one issue, which exists
in svn and nothing to do with this patch, so that's for another time)

On 10/1/06, LiuCougar <liucougar@xxxxxxxxx> wrote:
This is a patch of what I proposed, please review it

with this patch, if the other syntax is used, when mouseover the label
(even on the text), the image on the checkbox will be changed
accordingly

(some extra spaces are removed in this patch as well)

thanks

On 9/29/06, LiuCougar <liucougar@xxxxxxxxx> wrote:
> Hi Becky,
> Bill told me I should consult with you about this:
>
> in Checkbox.js:
> postCreate: function(args, frag){
> // find any associated label and create a labelled-by
relationship
> // assumes <label for="inputId">label text </label>
rather than
> // <label><input type="xyzzy">label text</label>
>
> I would like to add support for the syntax as well:
> <label><input type="xyzzy">label text</label>
>
> because I do not want to have an id specified for the widget (I use
> checkbox in a widget template, and yes it is the new widgetsInTemplate
> stuff)
>
> Do you think this syntax is ok? Will it confuse screen reader?
>
> If you are ok with it, I will go ahead and add the support.
>
> Thanks,
> Cougar
> --
> "People's characters are strengthened through struggle against
> difficulties; they are weakened by comfort."
> - Old Chinese adage
>


--
http://liucougar.scim-im.org
"People's characters are strengthened through struggle against
difficulties; they are weakened by comfort."
- Old Chinese adage





--
http://liucougar.scim-im.org
"People's characters are strengthened through struggle against
difficulties; they are weakened by comfort."
- Old Chinese adage

Attachment: a.patch
Description: Binary data

_______________________________________________
dojo-contributors mailing list
dojo-contributors@xxxxxxxxxxxxxxx
http://dojotoolkit.org/mailman/listinfo/dojo-contributors
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise