Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Watermark a11y
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jörn Zaefferer  
View profile  
 More options Feb 20 2009, 2:49 pm
From: Jörn Zaefferer <joern.zaeffe...@googlemail.com>
Date: Fri, 20 Feb 2009 11:49:38 -0800 (PST)
Local: Fri, Feb 20 2009 2:49 pm
Subject: Watermark a11y
Hi,

I'd like to get some input on this planning document:
https://jqueryui.pbwiki.com/Watermark

Specifically on the accessibility of the two common approaches for
implementing a watermark: Either modifying the value of an input
field, eg. value="search" class="watermark", and removing that when
the field gets focus. Or positioning a label-element over the input
field, hiding it when the field gets focus.

Thanks
Jörn


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Hoffman  
View profile  
 More options Feb 20 2009, 6:38 pm
From: Chris Hoffman <mistermuc...@gmail.com>
Date: Fri, 20 Feb 2009 18:38:53 -0500
Local: Fri, Feb 20 2009 6:38 pm
Subject: Re: Watermark a11y
Jörn,

If the purpose of the label element is, semantically, to label the
field, and that is exactly what the watermark is doing, then it's
pretty clear to me that the watermark should be a positioned label.
Furthermore, if you are building a form properly, then you will have
the label elements already (maybe positioned off screen-left if you
are hiding them), so repeating the same text in the value of the input
fields would be unnecessarily redundant.

Positioned labels will also degrade gracefully if the javascript fails
to load for some reason.

Regards,

Chris

On Fri, Feb 20, 2009 at 2:49 PM, Jörn Zaefferer


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
clown  
View profile  
 More options Feb 23 2009, 11:03 am
From: clown <cl...@utoronto.ca>
Date: Mon, 23 Feb 2009 08:03:06 -0800 (PST)
Local: Mon, Feb 23 2009 11:03 am
Subject: Re: Watermark a11y

On Feb 20, 2:49 pm, Jörn Zaefferer <joern.zaeffe...@googlemail.com>
wrote:

> Hi,

> I'd like to get some input on this planning document:https://jqueryui.pbwiki.com/Watermark
> ...
> Jörn

I have to think about this some more, but this sounds like a good
place to use the aria-label attribute (http://www.w3.org/WAI/PF/aria/
#aria-label).

The aria spec favours using aria-labelledby over aria-label (http://
www.w3.org/WAI/PF/aria/#aria-labelledby).  Note that aria-labelledby
references text that is "...visible on screen" and will not change,
e.g., text in a <label> element.  But, the display in the watermark
example does change (to the search text).  Even so, the contents of
the <label> doesn't; it is hidden.  Hiding it can be done by
positioning it off-screen, as Chris suggested, or setting its display
to "none", or, perhaps, its visibility to "hidden".

That sounds relatively complicated.  Hence, this seems to be a good
argument for using the aria-label attribute.  The text doesn't change,
it can be copied into the search field as necessary, and there's no
need to fiddle around with showing/hiding some <label> element.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jörn Zaefferer  
View profile  
 More options Feb 26 2009, 3:21 pm
From: Jörn Zaefferer <joern.zaeffe...@googlemail.com>
Date: Thu, 26 Feb 2009 21:21:37 +0100
Local: Thurs, Feb 26 2009 3:21 pm
Subject: Re: Watermark a11y
I've written a first experimental implementation using labels:
http://jqueryjs.googlecode.com/svn/trunk/plugins/searchField/watermar...

I agree with Chris' arguments for using a label element. Also the
technical implementation is quite clean and doesn't require
workarounds for handling form submits or password fields. It also
enables animation to hide/show the watermark. The demo uses fades, but
slides are quite interesting, too.

I'm not sure about handling ARIA. A label element with a proper
for-attribute seems to be fine to me, is there any value added by
adding aria-label or aria-labelledby (or both) attributes?

Jörn


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rich Caloggero  
View profile  
 More options Feb 26 2009, 4:13 pm
From: "Rich Caloggero" <r...@MIT.EDU>
Date: Thu, 26 Feb 2009 16:13:13 -0500
Local: Thurs, Feb 26 2009 4:13 pm
Subject: Re: Watermark a11y
Not sure what this is supposed to show here, but when testing with a screen
reader, I do hear a bunch of fields labeled with the string "search".

Sorry for my ignorance, but what exactly is a watermark in this context?

-- Rich


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jörn Zaefferer  
View profile  
 More options Feb 26 2009, 4:48 pm
From: Jörn Zaefferer <joern.zaeffe...@googlemail.com>
Date: Thu, 26 Feb 2009 22:48:26 +0100
Local: Thurs, Feb 26 2009 4:48 pm
Subject: Re: Watermark a11y
I've created an actual demo:
http://jqueryjs.googlecode.com/svn/trunk/plugins/searchField/demo.html

This should give you a better idea.

Jörn


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rich Caloggero  
View profile  
 More options Feb 26 2009, 6:25 pm
From: "Rich Caloggero" <r...@MIT.EDU>
Date: Thu, 26 Feb 2009 18:25:33 -0500
Local: Thurs, Feb 26 2009 6:25 pm
Subject: Re: Watermark a11y
Hmm, the watermark must be a purely visual effect, because all the screen
reader shows me is the login form. As each field gains focus, I hear what
you might expect:

* the text of the label is spoken, then the value (if any) of the actual
input element is read
* the text inside the legend is spoken before the type and value of each
field

I cannot see the screen at all, so I'm just kind of curious what this
watermark thing is supposed to accomplish; what am I missing here?
-- rich


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jörn Zaefferer  
View profile  
 More options Feb 26 2009, 6:29 pm
From: Jörn Zaefferer <joern.zaeffe...@googlemail.com>
Date: Fri, 27 Feb 2009 00:29:22 +0100
Local: Thurs, Feb 26 2009 6:29 pm
Subject: Re: Watermark a11y
Seems like this is the right implementation, as it really is a purely
visual effect. It just moves a text label above the input field, which
is useful in space-constrained layouts.

Here is an implementation that modifies the input to "hold" the label:
http://jqueryjs.googlecode.com/svn/trunk/plugins/searchField/index.html
Probably way more obtrusive, while the visual effect is very similar.

Jörn


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rich Caloggero  
View profile  
 More options Feb 26 2009, 6:40 pm
From: "Rich Caloggero" <r...@MIT.EDU>
Date: Thu, 26 Feb 2009 18:40:37 -0500
Local: Thurs, Feb 26 2009 6:40 pm
Subject: Re: Watermark a11y
Thanx for the explanation.

In the demo at:
http://jqueryjs.googlecode.com/svn/trunk/plugins/searchField/index.html
the first password field doesn't gain focus when tabbing from the second
field labeled "with initial value"; very odd.
Otherwise, it works as well as the previous example.

-- Rich


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »