On Thu, Jun 10, 2004 at 08:37:02PM +0100, Kate L Pugh wrote:
On Thu, Jun 10, 2004 at 04:01:06PM +0100, Kate L Pugh wrote:
What's the '<span class="hidden">' in navbar.tt all about?
On Thu 10 Jun 2004, Earle Martin earle@downlode.org wrote:
From 'Changes' for 0.31:
Numerous template tweaks to comply with the W3C's Web Content Accessibility Guidelines (http://www.w3.org/TR/WAI-WEBCONTENT/): (...) - labels for all form input elements and some textual additions to templates, such as '/' separators between navbar items, because the guidelines specify links should not only be separated by whitespace. If you don't want these to appear, put the following in your stylesheet and they'll be hidden by CSS (but will still appear for people using textual browsers or screen readers): ".hidden { display: none }".
Make your navbar a <ul> element instead of DIV soup, that way you don't have to add those /'s in. The HTML may pass the letter of the WAI law, but a screen reader would have no clue about the relation of one DIV to another. The <ul> should have contextual markers, start of list, end of list, which would be the only 'hidden' content.
16:16 [msg grault] Hm. I'm not sure that "hidden" is a good name for the class. It's sort of a bit general. 16:17 grault(earle@mythix.re)-> Hmm. I was thinking that the class could be applied to other hidden content, but I'm not sure what that could be. 16:17 [msg grault] Yes, but if there was other hidden content you might want to hide some types but not others. 16:19 grault(earle@mythix.re)-> Hmm. Maybe something like .non_visual, or .accessibility 16:19 [msg grault] Post to the list, maybe. 16:19 grault(earle@mythix.re)-> Yeah.
Opinions?
.hidden is a fine name, if you needed it to appear elsewhere you'd just not specify it globally, eg
#navbar.hidden { display:none; } #find_within_distance.hidden { color:red; }
not:
.hidden { display:none; }
Stephen