SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 30 of 30
  1. #26
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,114
    Mentioned
    448 Post(s)
    Tagged
    8 Thread(s)
    Quote Originally Posted by stevefaulkner View Post
    You do not need any of the other ARIA markup. It is either redundant or not useful. native HTML controls such as checkbox already have information about role/state etc exposed by browsers to the accessibility APIs. use of role=application should only be used in very limited circumstances and is not useful or desirable in your example code.
    Does role="navigation" have any use? Seems like a handy one to me.

  2. #27
    om nom nom nom Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,272
    Mentioned
    50 Post(s)
    Tagged
    2 Thread(s)
    I think Steve was only discussing the OP's code here. Role="navigation" is indeed handy, so long as (like other landmarks) it's used sparingly per document.

    Nav already had "navigation" as a role built-in, for the readers (like NVDA) who already understand the native roles, but it's still good to manually add the role for now (or when we have navigation but no HTML5 nav tags).

    Or did something have "navigation" on it in the code I missed?

  3. #28
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,114
    Mentioned
    448 Post(s)
    Tagged
    8 Thread(s)
    The way I read it, steve was saying that ARIA roles are mostly redundant, but I may have read wrong. Obviously there are other ways to signal navigation, such as a (perhaps hidden from view) heading element that announces it. Not sure which is better, or if screen reader users really care. Accesskeys seem viable too. It's all a bit much for my widdle bwain.

  4. #29
    om nom nom nom Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,272
    Mentioned
    50 Post(s)
    Tagged
    2 Thread(s)
    steve was saying that ARIA roles are mostly redundant
    Yes, on elements who were recognised before roles were ever introduced: checkboxes are known to screen readers, so telling a screen reader that a checkbox has a role of "checkbox" is redundant.

    Roles have use when you're using an element who either doesn't have a role, or doesn't have a role matching what you're using it for.

    Landmark roles, though, are different. They are completely new: there were no "banner" or "navigation" roles before. You had to either rely on skip links or a hidden header stating "main navigation" or, usually, the first list you run into that starts with links like "Home" etc.

    With landmarks, provided they are on the page and you the user are aware of them (if your screen reader is just set to automatically start announcing stuff about the page on page load), then there's a key you can hit *at any point on the page*, so no matter where you've navigated to on that page already, that brings up all the page landmarks. It's like your own skip link list, which you can call at any time (not just when you run into them at the beginning) that are always the same (the names of the landmark roles are set in the specs for the most part) no matter what page you're on.

    To me, this all has way more benefits than accesskeys, which will differ between pages. Though accesskeys can be fine for sighted keyboarders using Opera, but lanmark roles will work in all *other* major browsers and in the newer versions of major screen readers.

  5. #30
    om nom nom nom Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,272
    Mentioned
    50 Post(s)
    Tagged
    2 Thread(s)
    Ah, Marco Zehe has made a blog post about "when to use the application role": http://www.marcozehe.de/2012/02/06/i...-do-so-wisely/


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •