Archive index

A11y Slackers Gitter Channel Archive 18th of November 2015

What fresh hell is THIS now? - Patrick Lauke
  1. garcialo
    Nov 18 00:15
    @cameron Not natively, but there is a great add on that will add that. http://addons.nvda-project.org/addons/focusHighlight.en.html
  2. garcialo
    06:25
    I'm going to be in the SFO area (staying with friends in San Mateo) first week in December. Anyone in the area and want to grab lunch/dinner sometime? =)
  3. MichielBijl
    08:51
    I'm in Arnhem and Ede all week, anyone in the area want to grab lunch/dinner? =p
  4. MichielBijl @MichielBijl is just goofing around, sorry @garcialo
  5. garcialo
    13:41
    @MichielBijl Goofing about lunch/dinner is very insulting in America. I am disappoint.
  6. MichielBijl
    14:16
    I would never! I was goofing about the location.
  7. garcialo
    14:16
    Ah, location goofing is totally not completely insulting.
  8. MichielBijl
    14:16
    Although the Dutch—looking at our local food—don't care that much about food.
  9. garcialo
    14:16
    hah
  10. MichielBijl
    14:17
    Except voor stroopwafels; those are delicious
  11. powrsurg
    14:20
    For our search section we have a fieldset with a legend that says "Search Catalog", a single text input and then a submit button. Would it be appropriate to set an aria-labelledby equal for the text field to be the label, or should we use aria-label to give a different name?
  12. powrsurg
    14:21
    I feel weird doing the aria-label version, but the aria-labelledby method would result in two elements (the fieldset and the input) having the same accessibility name, wouldn't it? Isn't that bad form?
  13. garcialo
    14:22
    I'd say that's not really the best use of a fieldset.
  14. garcialo
    14:22
    And effectively, even if you're using ARIA to provide the programmatic label, you're still using the fieldset for the visible label.
  15. garcialo
    14:24
    If you're already fine with having a visible label, I'd just use a <label> and not use the fieldset.
  16. powrsurg
    14:25
    Intellectually, I agree with you. But I think everyone likes the design of it with how browsers actually deal with fieldsets and legends
  17. garcialo
    14:26
    The design?
  18. garcialo
    14:26
    You mean, using a fieldset because of how it looks?
  19. powrsurg
    14:27
    I guess I can re-style it all to do that. I've just never been great with replicating having an element placed over a border and have the line not go through it
  20. powrsurg
    14:27
    Well, we have a form with one fieldset, a legend, and then the input and submit button
  21. powrsurg
    14:30
    This is one of those things where I'm fixing something that has been live for a while (at least a year before I was hired) that's just been bothering me. As I talk it out here I'm realizing yeah, there is more wrong here than I was thinking. We don't really need the fieldset and should ditch it and the legend and simply use a label instead
  22. garcialo
    14:30
    Then yes, I would just add the programmatic label.
  23. powrsurg
    14:30
    :: hangs head ::
  24. garcialo
    14:30
    Since there is already a visible label, I can see the argument for using aria-labelledby
  25. garcialo
    14:31
    But it would be just as fine to use aria-label
  26. garcialo
    14:31
    imo
  27. garcialo
    14:32
    Heck, it's a search field with a visible label. You could even use title
  28. garcialo @garcialo pauses for the audible gasp.
  29. powrsurg
    14:36
    :: gasp ::
  30. powrsurg
    14:38
    hmm, can't an accessible name come from a placeholder?
  31. garcialo
    14:38
    no
  32. garcialo
    14:38
    I mean, technically...yes
  33. garcialo
    14:38
    WCAGically? no
  34. powrsurg
    14:38
    I really need to bookmark the docs on how accessible names are calculated
  35. garcialo
    14:39
    Well, using a placeholder opens you up to more issues.
  36. garcialo
    14:40
    I'm saying that according to WCAG, you can use a title as the label for that field.
  37. powrsurg
    14:40
    I know it will need sufficient contrast (since most browsers don't seem to do so)
  38. MichielBijl
    14:42
    @powrsurg that is something @stevefaulkner proposed a while back—acc name from placeholder.
  39. MichielBijl
    14:42
    Only if none of the other variants are available of course.
  40. garcialo
    14:42
    Yeah, it'd better than nothing.
  41. garcialo
    14:42
    it'd BE better than nothing
  42. powrsurg
    14:44
    yeah, I feel like there are A LOT of sites that don't do jack that this would at least make them a little better if they had it
  43. MichielBijl
    14:44
    <fieldset aria-labelledby="search-label">     <label>         <span id="search-label">Search Catalog</span>         <input type="search">     </label>     <button type="submit">Search</button> </fieldset>
    
  44. garcialo
    14:44
    But it's more than just the contrast. =(
  45. MichielBijl
    14:45
    Something like that is what you meant with the labelled by thing right?
  46. garcialo
    14:45
    I don't think so; you forgot the legend =p
  47. garcialo
    14:45
    He said he had one.
  48. MichielBijl
    14:46
    Why bother with a legend if you can use the label?
  49. MichielBijl
    14:46
    O right.
  50. MichielBijl
    14:46
    Then the other way around?
  51. garcialo
    14:46
    How do you do that fancy formatting? =p
  52. MichielBijl
    14:46
    If that is all the markup you have for that field it doesn't really matter design wise.
  53. powrsurg
    14:46
    that's what we had right now
  54. MichielBijl
    14:46
    With triple tack thing
  55. MichielBijl
    14:47
  56. MichielBijl
    14:47
    `````````
  57. MichielBijl
    14:47
    Those things :P
  58. garcialo
    14:47
    mrr? hello?
    
    how do I escape this madness?
  59. garcialo
    14:47
    ah, I see
  60. garcialo
    14:48
    ouch
  61. MichielBijl
    14:48
    Simplified:
    <fieldset>   <legend>     <span>Search Catalog</span>   </legend>   <div>     <div>      <input type="text">     </div>     <input type="submit" value="Search">   </div> </fieldset>
    
  62. MichielBijl
    14:48
    So there is no label at all?
  63. MichielBijl
    14:49
    Why not change that div around the input to a label and link that to the legend?
  64. garcialo
    14:49
    yeah, based solely on how many divs there are for every little thing, I'd just use aria-label or title to provide the label.
  65. powrsurg
    14:50
    Correct. I was asking should I add an aria-label (or title I guess), or would it be acceptable (my gut says no) to put an id on the legend and use aria-labelledby ... or I guess it could have a visually hidden label
  66. MichielBijl
    14:50
    So:
    <fieldset>   <legend id="search-legend">     <span>Search Catalog</span>   </legend>   <div>     <label aria-labelledby="search-legend">      <input type="text">     </label>     <input type="submit" value="Search">   </div> </fieldset>
    
  67. garcialo
    14:50
    You can put an id on the legend and do labelledby.
  68. powrsurg
    14:50
    a label can be labelledby something?
  69. MichielBijl
    14:50
    Sure
  70. garcialo
    14:50
    That just seems like it would make it even more confusing.
  71. MichielBijl
    14:50
    It's doesn't have the same “label” meaning.
  72. MichielBijl
    14:51
    But yeah, could be confusing.
  73. garcialo
    14:51
    Could be?
  74. powrsurg
    14:51
    (btw, how are you entering HTML in here so simply?)
  75. MichielBijl
    14:51
    With the magic of copy paste.
  76. MichielBijl
    14:51
    And the help of those tack things `
  77. powrsurg
    14:51
    oh, heh. I was thinking there was another service
  78. garcialo
    14:51
    trip-tacks!
  79. MichielBijl
    14:52
    If you put three in a row and put your code between you can do multi row code.
  80. MichielBijl
    14:52
    Markdown format
  81. powrsurg
    14:52
    nice
  82. powrsurg
    14:52
    why is that span needed?
  83. MichielBijl
    14:52
    Don't know how it'll look in Slack though.
  84. MichielBijl
    14:53
    That span was already in your code.
  85. garcialo
    14:53
    It'll probably be fine; I'll check it out real quick.
  86. MichielBijl
    14:53
    All I did was remove a bunch of attributes to make it cleaner for example purposes.
  87. powrsurg
    14:53
    ... yeah ... damn Drupal. Literally didn't see that
  88. powrsurg
    14:53
    I really wish they didn't make us come in an hour earlier today. I need more coffee
  89. powrsurg
    14:53
    yes
  90. garcialo
    14:54
    Yeah, it's fine in Slack. Doesn't have the text highlighting, but definitely better contrast.
  91. MichielBijl
    14:55
    Cool :)
  92. MichielBijl
    14:55
    Why is the legend absolutely needed?
  93. MichielBijl
    14:55
    Cause I still like this:
  94. MichielBijl
    14:55
    <fieldset aria-labelledby="search-label">     <label>         <span id="search-label">Search Catalog</span>         <input type="search">     </label>     <button type="submit">Search</button> </fieldset>
    
  95. MichielBijl
    14:56
    Just because it's fewer code
  96. MichielBijl
    14:56
    *less code?
  97. MichielBijl
    14:56
    I don't know…
  98. MichielBijl
    14:56
    less code/fewer lines of code
  99. garcialo
    14:56
    It's "needed" for how it looks.
  100. garcialo
    14:56
    In this case.
  101. MichielBijl
    14:57
    Ah. Okay, but you can position the label/span thingy the same.
  102. MichielBijl
    14:57
    Depends on the design I guess.
  103. MichielBijl
    14:57
    Pretty sure it's doable.
  104. garcialo
    14:57
    Yeah.
  105. powrsurg
    15:01
    The reason for the legend and such comes from Drupal's automatic markup
  106. garcialo
    15:02
    Ah, I see.
  107. powrsurg
    15:02
    I can add attributes on stuff, or I have to do a lot of re-coding to do things manually to get it done the right way ...
  108. MichielBijl
    15:03

    The blue/large part is the title, the tiny grey text is some sort of reference code.
    http://dir.agosto.nl/dump/Screen%20Shot%202015-11-18%20at%2015.59.13.png

    How should this be marked up?

    <h2>Title text <small>FAQ-000001</small</h2>
    

    Or:

    <h2>Title text</h2> <p>FAQ-000001</p>
    

    Or:

    <h2>Title text</h2> <p><span class="hidden someway">Reference code:</span>FAQ-000001</p>
    

    Or (although I'm not sure in what order content/label are read):

    <h2>Title text</h2> <p aria-label="Reference code">FAQ-000001</p>
    

    Or:

  109. MichielBijl
    15:03
    @powrsurg in that case I would just label the label with labelledby >:)
  110. garcialo
    15:04
    @powrsurg I vote aria-label!
  111. MichielBijl
    15:04
    I would agree with that if labelledby would cause too much confusion.
  112. MichielBijl
    15:05
    Not sure how an aria-label on a label wouldn't, but I digress.
  113. garcialo
    15:05
    Yeah, there's already a bunch of other extraneous tags in there. Might as well make it simple.
  114. powrsurg
    15:05
    I ... would need to figure out how to make drupal apply ids to the legend and not the fieldset element to go with aria-labelledby ...
  115. garcialo
    15:05
    Or title!
  116. powrsurg
    15:06
    or title
  117. powrsurg
    15:06
    really, anything that changes the markup for the legend ...
  118. MichielBijl
    15:06
    Is title exposed for labels?
  119. garcialo
    15:06
    You can use a title as a label in some cases.
  120. garcialo
    15:06
    And be all legit with WCAG
  121. powrsurg
    15:07
      $form['search'] = array(     '#title'         => 'Search Catalog',     '#description'   => '',     '#tree'          => FALSE,     '#type'          => 'fieldset',     '#collapsible'   => FALSE,   );
    
  122. powrsurg
    15:08
    that's how Drupal even generated the fieldset and created the title
  123. powrsurg
    15:08
    er legend
  124. MichielBijl
    15:09
    Hmm, my aria-label thingy overwrites the paragraph content.
  125. garcialo
    15:13
    You have fiber? I'm jealous
  126. powrsurg
    15:16
    @MichielBijl I would go with your third option
  127. garcialo
    15:16
    agreed
  128. MichielBijl
    15:16
    And so I will :)
  129. garcialo
    15:16
    Assuming there isn't appropriate context provided in the precedding heading
  130. garcialo
    15:16
    wait, I don't know how to spell
  131. MichielBijl
    15:17
    No that screenshot text translates to “Where does my fibre connection come into my home”
  132. powrsurg
    15:17
    <h2>Title text</h2> <p><span aria-label=":Reference code:"></span>FAQ-000001</p>
    
  133. garcialo
    15:17
    Yeah, that's what I figured it meant =p
  134. powrsurg
    15:18
    er take out the first : in that
  135. MichielBijl
    15:18
    Hmm, that only saves on the class.
  136. powrsurg
    15:18
    aria-label="Reference code: ">
  137. powrsurg
    15:18
    it's another option at least
  138. MichielBijl
    15:18
    True that
  139. MichielBijl
    15:19
    I'm not sure. I dislike empty elements. But that is just a personal thingy I guess.
  140. MichielBijl
    15:19
    Semantically they're the same (in theory at least)
  141. powrsurg
    15:19
    the hidden text method might actually hurt you in terms of SEO if this is on a public page
  142. MichielBijl
    15:20
    Hmm, really?
  143. MichielBijl
    15:20
    I'm a SEO noob, so have no clue.
  144. powrsurg
    15:21
    well, when text is hidden from the user search engines may think you're cloaking. It's probably fine for a little bit here and there but it is a potential risk
  145. powrsurg
    15:22
    they see it as simply text that is only read by search engines and not meant for uses. I think with the normal stuff you'd probably do it might actually be able to tell you're actually trying to make the site accessible so you wouldn't get penalized much, if any, but it's possible
  146. powrsurg
    15:22
    of course, who knows lately since googlebot now actually internally renders the page like it would in chrome ...
  147. MichielBijl
    15:28
    Thank you for the advice. I used the aria label way.
  148. MichielBijl
    15:28
    Just to be safe.
  149. MichielBijl
    15:30
    The hidden text way would clarify things if CSS is turned off, but I'm unsure how important that is.
  150. powrsurg
    15:32
    While that is more pure, how much does that happen in modern web browsing?
  151. MichielBijl
    15:37
    2g/3g connections
  152. MichielBijl
    15:37
    Had a webpage load adds and styles after a minute on the page a couple days ago.
  153. MichielBijl
    15:37
    I started reading and left after all the crap loaded.
  154. MichielBijl
    15:37
    There was like 20% screen area left after all he craptastic adds loaded.
  155. MichielBijl
    15:39
    That said, we have 4g here, but if I'm in an elevator, the speed isn't all that great/might switch to 2g/3g.
  156. dylanb
    15:55
    @MichielBijl I will be in Amsterdam on December 10th if you want to meet for stuff the Dutch care about - like beer
  157. LjWatson
    15:56
    @MichielBijl You're in Amsterdam?
  158. zakim-robot
    15:57
    [cameron] Here’s how I create a Windows accessibility testing VM: https://github.com/ckundo/a11y-testing-vms
  159. zakim-robot
    15:57
    [cameron] suggestions welcome!
  160. dylanb
    16:04
    Where is @MichielBijl !?!?
  161. zakim-robot
    16:40
    [car] @garcialo @cameron: Thanks for pointing out the NVDA focus rectangle add-on - I love it! I often use the old Windows "inspect.exe" highlight rectangle with NVDA, but the add-on is cool because it shows you which mode NVDA is in as well. Nice.
  162. garcialo
    16:41
    This message was deleted
  163. garcialo
    16:41
    Argh, now I have to double check.
  164. garcialo
    16:43
    Okay, I misspoke. Deleted in case anyone searches and finds it. =p
  165. MichielBijl
    16:49
    @dylanb and @LjWatson I can be in Amsterdam in about two hours ;)
  166. LjWatson
    16:50
    @MichielBijl will be in Amsterdam tomorrow evening to meet with my TPG friend Hans Hillen.
  167. MichielBijl
    16:52
    And @dylanb that sounds great. I do have a christmas dinner thing from work though :(
  168. MichielBijl
    16:52
    @LjWatson oeh, I could totally come
  169. MichielBijl
    16:52
    @LjWatson oh wait. I have another dinner tomorrow with my project members
  170. MichielBijl
    16:53
    @LjWatson what time do you leave/go home tired?
  171. MichielBijl @MichielBijl damns all these dinners
  172. MichielBijl
    16:53
    Or rather dinners with people I see everyday that is
  173. LjWatson
    16:53
    @MichielBijl I'll just be around tomorrow evening.
  174. MichielBijl
    16:54
    I could cancel on them…
  175. LjWatson
    16:54
    We don't have a firm plan, but the basic idea is to meet around 6.30pm somewhere and take it from there.
  176. LjWatson
    16:55
    Hang on... let's take this off channel so we don't disturb everyone :)
  177. MichielBijl
    16:55
    Sounds good
  178. garcialo
    16:56
    @LjWatson As if everyone on here wasn't already a little disturbed.
  179. MichielBijl
    17:09
    Haha
  180. MichielBijl
    17:09
    Now that's disturbing
  181. zakim-robot
    18:24
    [cordelia] Hey folks, I’m working on an autocomplete text input box and struggling to get aria-activedescendant to read out in VoiceOver + Safari. It works just fine in VO + Chrome, NVDA + Firefox, and JAWS + IE. Is this a known bug?
  182. MichielBijl
    18:49
    @cordelia, @heydon had a similar problem. On Twitter.
  183. MichielBijl
    18:49
    I tried testing his code, but wasn't sure what was expected to be read out.
  184. MichielBijl
    18:51
  185. stevefaulkner
    18:52
    @MichielBijl re placeholder that's how it is implemented in most browsers http://www.html5accessibility.com/tests/placeholder-labelling.html
  186. MichielBijl
    18:54
    When did they change that?
  187. MichielBijl
    18:54
    Or has it always been like that?
  188. MichielBijl
    18:55
    If so, the spec should reflect and the last time you asked it was a rhetorical question? :P
  189. MichielBijl
    19:13
    I'm feeling like a little girl meeting hero's.
  190. MichielBijl
    19:13
    And it's not even tomorrow yet.
  191. stevefaulkner
    19:15

    @MichielBijl

    If so, the spec should reflect

    the spec that defines it does reflect it http://w3c.github.io/aria/html-aam/html-aam.html#accessible-name-and-description-calculation

  192. MichielBijl
    19:15
    Or a little boy… same thing really.
  193. MichielBijl
    19:16
    @stevefaulkner then I'm probably delusional.
  194. stevefaulkner
    19:16
    @MichielBijl i could not possibly comment
  195. stevefaulkner
    19:18
    @MichielBijl note this does not mean it is recommended or conforming to use placeholder as label, it just means if you don't do the right thing the placeholder value is used as fallback accname
  196. MichielBijl
    19:22
    I'm not sure you could say anything worse than banning me from the internet. In any case, ah, so what was the question the last time, whether it should be conforming?
  197. MichielBijl
    19:37
    Anyway, meeting some TPG stars tomorrow, sorry, you didn't make the cut ;)
  198. MichielBijl @MichielBijl actually hopes to meet @stevefaulkner one day :)
  199. garcialo
    20:39
    @MichielBijl meeting @stevefaulkner is overrated.
  200. garcialo
    20:41
    Here is a simulation. 1. Go to a pub. 2. Ask the bartender who the most common regular is. 3. Start a conversation.
  201. MichielBijl
    20:47
    That, doesn't sound half bad actually
  202. garcialo
    20:47
    I didn't say it was bad. It is enjoyable. =)
  203. MichielBijl
    20:48
    Well, what if it was Steve's favourite pub and he is the most common regular.
  204. MichielBijl
    20:48
    Which isn't unthinkable
  205. garcialo
    20:48
    I would be surprised if he was the most common regular at only one pub.
  206. powrsurg @powrsurg has started to bookmark some of the links @stevefaulkner has posted since they keep coming up for me and I'm never 100% on things
  207. stevefaulkner
    22:40
    @garcialo you think meeting me is overrated, try being me
  208. garcialo
    23:01
    Hah
  209. StommePoes
    23:09
    I shoulda removed all the twitter bs from the URL
  210. zakim-robot
    23:10
    [marcysutton] Cool!!
  211. StommePoes
    23:12
    It's cool, but now I want them to also offer a class for other airlines' workers so they know, for example, that blinks who can walk don't need to wait for a wheelchair to board the plane :P
  212. StommePoes
    23:12
    I remember one time Jaime Teh waited for like evar to board a plane because someone was scrambling for a wheelchair for him and he was like, wut? I can haz legz
  213. zakim-robot
    23:29
    [cordelia] HTML question: I have a horizontal tab UI that I’m not implementing as ARIA tabs, because clicking on a tab redirects to a new page. Each tab basically acts as a heading for the content below it, so I’m wondering what’s the best markup to use.
  214. zakim-robot
    23:31
    [cordelia] I want to use <nav> for the list of tabs, but then how do I specify “This nav item is selected and is the header for the content below it”? Is using aria-labelledby on the content div the right approach? Or including a visually-hidden heading with the same text as the selected “tab”?
  215. garcialo
    23:33
    Selected tab? Are the tabs not links?
  216. zakim-robot
    23:34
    [cordelia] Yeah, the tabs are links in a <nav>
  217. zakim-robot
    23:34
    [cordelia] But one of the tabs also acts as a heading for the rest of the page
  218. garcialo
    23:35
    Yeah, that's the tricky bit. I'm trying to wrap my head around it.
  219. zakim-robot
    23:35
    [cordelia] Kind of similar to the “accessible current page link conundrum” http://www.heydonworks.com/article/the-accessible-current-page-link-conundrum but in my case the link is also (visually, but not in the code) a heading
  220. garcialo
    23:35
    because really, I'm thinking that the <nav> is in the <header>, but the content that would match the heading would be in <main>
  221. garcialo
    23:37
    Train of thought: Maybe leave the <nav> link as just a link and have an invisible heading tag in the <main>?
  222. zakim-robot
    23:37
    [cordelia] ^ That’s what I’m leaning towards.
  223. garcialo
    23:38
    Mock it up!
  224. zakim-robot
    23:38
    [cordelia] It’s a reusable component, so the funky thing is that someone may already put a heading in the body, making a hidden heading redundant.
  225. garcialo
    23:39
    The component is the tab ui?
  226. garcialo
    23:40
    Does the "active" tab look like a heading?
  227. garcialo
    23:40
    You could also just have a visible heading in the content if it's not very differentiatable.