Hans Hillen (TPG) Steve Faulkner (TPG) Karl Groves (TPG) Billy Gregory (TPG)

Slides:



Advertisements
Similar presentations
JQuery UI A11Y Tips, Tricks and Pitfalls jQUery UI ARIA Hackathon 2011 Hans Hillen, TPG.
Advertisements

Chapter 3 – Web Design Tables & Page Layout
Twitter Bootstrap. Agenda What is it? Grids and Fluid layouts Globals and Typography Tables, Forms and Buttons Navigation Media and thumbnails Responsive.
EXCEL Spreadsheet Basics
Microsoft Word 2010 Lesson 1: Introduction to Word.
Intermediate Level Course. Text Format The text styles, bold, italics, underlining, superscript and subscript, can be easily added to selected text. Text.
Hans Hillen (TPG) Steve Faulkner (TPG) 03 / 15 / 11Accessibility of HTML5 and Rich Internet Applications - CSUN
Excel Lesson 3 Organizing the Worksheet
XP 1 Designing a Web Site with Frames Using Frames to Display Multiple Web Pages Tutorial 5.
Tutorial 8 Designing a Web Site with Frames. XP Objectives Explore the uses of frames in a Web site Create a frameset consisting of rows and columns of.
Create a Web Site with Frames
IV. “Regular” Web Pages: HTML A Web Accessibility Primer: Usability for Everyone Office of Web Communications.
XP Tutorial 5New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Designing a Web Site with Frames Using Frames to Display Multiple Web Pages Tutorial.
Hans Hillen (TPG) Steve Faulkner (TPG) 02 / 25 / 13 Accessibility of HTML5 and Rich Internet Applications - CSUN
HTML Overview for Proofreading. HTML layouts are divided into sections, and created in tables separating the images & content sections.
ARIA + HTML5 Steve Faulkner & Hans Hillen. DIVING IN TO SOME HTML5 Details/summary Dialog Spin button slider ARIA rules HTML/ARIA validation Tools.
Scripted, Tab Accessible Tree Control Hierarchical view of data via tree control. Keyboard Navigation from initially closed tree to view above with focus.
© 2008 IBM Corporation Emerging Internet Technologies Real World Accessibility with ARIA Becky Gibson Web Accessibility Architect.
Copyright 2007, Information Builders. Slide 1 Maintain & JavaScript: Two Great Tools that Work Great Together Mark Derwin and Mark Rawls Information Builders.
Alternative Views of the Web Jon Gunderson, Ph.D. Division of Rehabilitation-Education Services University of Illinois at Urbana/Champaign.
CO1552 – Web Application Development Lists, Special Characters, and Tables.
Using Styles and Style Sheets for Design
Lesson 4: Using HTML5 Markup.  The distinguishing characteristics of HTML5 syntax  The new HTML5 sectioning elements  Adding support for HTML5 elements.
CNIT 133 Interactive Web Pags – JavaScript and AJAX JavaScript Environment.
Accessibility of HTML5 and Rich Internet Applications (Part 2) Hans Hillen Steve Faulkner.
Website Development with Dreamweaver
Web Accessiblity Carol Gordon SIU Medical Library.
IC 3 BASICS, Internet and Computing Core Certification Key Applications Lesson 10 Creating and Formatting an Excel Worksheet.
1 Lesson 18 Organizing and Enhancing Worksheets Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
Accessible DOM scripting with ARIA Léonie Watson
© 2012 The McGraw-Hill Companies, Inc. All rights reserved. word 2010 Chapter 3 Formatting Documents.
IC 3 BASICS, Internet and Computing Core Certification Key Applications Lesson 11 Organizing the Worksheet.
Chapter 5 Quick Links Slide 2 Performance Objectives Understanding Framesets and Frames Creating Framesets and Frames Selecting Framesets and Frames Using.
Tutorial 8 Designing a Web Site with Frames. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore the uses of frames.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 19 Organizing and Enhancing Worksheets 1 Morrison / Wells / Ruffolo.
Basic Editing Lesson 2.
Use CSS to Implement a Reusable Design Selecting a Dreamweaver CSS Starter Layout is the easiest way to create a page with a CSS layout You can access.
Microsoft Access 2000 Presentation 3 Creating Databases Part II (Creating Forms)
Dive into Mobile Guidelines for Testing Native, Hybrid, and Web Apps Susan Hewitt, Accessibility Consultant, Deque Systems Jeanine Lineback, Accessibility.
Aria Roles Informing assistive technology. What are Aria Roles A way of conveying the role or state of content or functionality. Accessible Rich Internet.
1 Lesson 13 Organizing and Enhancing Worksheets Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
Chapter 5 Working with Tables Principles of Web Design, 4 th Edition.
HTML Concepts and Techniques Fifth Edition Chapter 4 Creating Tables in a Web Site.
MIMOS Berhad. All Rights Reserved. Nazarudin Wijee Mohd Sidek Salleh Grid Computing Lab MIMOS Berhad P-GRADE Portal Heuristic Evaluation.
HTML Concepts and Techniques Fifth Edition Chapter 3 Creating Web Pages with Links, Images, and Formatted Text.
Week 8.  Form controls  Accessibility with ARIA.
20-753: Fundamentals of Web Programming 1 Lecture 6: Advanced HTML Fundamentals of Web Programming Lecture 6: Advanced HTML.
Positioning Objects with CSS and Tables
Microsoft Office 2013 Try It! Chapter 4 Storing Data in Access.
Creating and Editing a Web Page Using Inline Styles
Creating Web Pages with Links, Images, and Embedded Style Sheets
 Add one element at a time  If it doesn’t do what you want, › Delete it › DON’T just keep piling on more items.
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 6 1 Creating Dynamic Pages.
1 Chapter 15 Creating a Presentation. Practical Computer Literacy, 2 nd edition Chapter 15 2 What’s inside and on the CD? In this chapter, you will learn.
Key Applications Module Lesson 12 — Word Essentials Computer Literacy BASICS.
Microsoft Excel Illustrated Introductory Workbooks and Preparing them for the Web Managing.
Chapter 8 Using Document Collaboration, Integration, and Charting Tools Microsoft Word 2013.
Creating a Presentation
Keyboard Accessibility
Positioning Objects with CSS and Tables
Design considerations
© Paradigm Publishing, Inc.
Benchmark Series Microsoft Word 2016 Level 2
DREAMWEAVER MX 2004 Chapter 3 Working with Tables
Web Development & Design Foundations with H T M L 5
Demystifying Web Content Accessibility Guidelines
Positioning Objects with CSS and Tables
Chapter 8 Using Document Collaboration and Integration Tools
Presentation transcript:

Hans Hillen (TPG) Steve Faulkner (TPG) Karl Groves (TPG) Billy Gregory (TPG)

 Keyboard and Focus Management Keyboard and Focus Management  Form Validation Form Validation  Mode Conflicts Mode Conflicts  Solutions, Workarounds and Considerations Solutions, Workarounds and Considerations 03 / 18 / 14Accessibility of HTML5 and Rich Internet Applications - CSUN 20142

03 / 18 / 14Accessibility of HTML5 and Rich Internet Applications - CSUN 20143

Problem:  Images, divs, spans etc. are not standard controls with defined behaviors o Not focusable with keyboard o Have a default tab order o Behavior is unknown Solution:  Ideally: Use native focusable HTML controls o,,, etc.  Or manually define keyboard focus and behavior needs 4Accessibility of HTML5 and Rich Internet Applications - CSUN / 18 / 14

 Reachability: Moving keyboard focus to a widget o Through tab order Native focusable controls or tabindex=“0” o Through globally defined shortcut o By activating another widget  Operability: Interacting with a widget o All functionally should be performable through keyboard and mouse input 03 / 18 / 14Accessibility of HTML5 and Rich Internet Applications - CSUN 20145

 To be accessible, ARIA input widgets need focus o Use natively focusable elements, such as,, etc o Add ‘tabindex’ attribute for non focusable elements, such as,, etc. Tabindex=“0”: Element becomes part of the tab order Tabindex=“-1” (Element is not in tab order, but focusable) o For composite widgets (menus, trees, grids, etc.), use a “roving tabindex”: Every widget should only have 1 stop in the tab order. Dynamically keep track where your widget’s current tab stop (active part) is: o Alternative for tabindex: ‘aria-activedescendant=“ ” Focus remains on outer container AT perceives element with the specified ID as being focused. You must manually highlight this active element, e.g. With CSS 03 / 18 / 14Accessibility of HTML5 and Rich Internet Applications - CSUN 20146

 Every widget needs to be operable by keyboard. common keystrokes are: o Arrow keys o Home, end, page up, page down o Enter, space o ESC  Mimic the navigate in the desktop environment o ARIA Best Practices:  Always manage and keep track of your focus. Never let it get lost. 7Accessibility of HTML5 and Rich Internet Applications - CSUN / 18 / 14

 The ability to skip content is crucial for both screen reader and keyboard users  Skip links are out of date, out of fashion and often misused o But keyboard users still need to be able to skip  Other alternatives for skipping: o Collapsible sections o Consistent shortcuts (e.g. a shortcut that moves focus between panes and dialogs) o Custom focus manager that allows the user to move focus into a container to skip its contents 03 / 18 / 14Accessibility of HTML5 and Rich Internet Applications - CSUN 20148

03 / 18 / 14Accessibility of HTML5 and Rich Internet Applications - CSUN 20149

 You can use ARIA to make your form validation easier to manage. o aria-required & aria-invalid states o Role="alert" to flag validation errors immediately  Use validation summaries invalid entries easier to find o Use role=“group” or Role="alertdialog" to mark up the summary o Link to corresponding invalid controls from summary items o Use different scope levels if necessary  Visual tooltips: Useful for validation messages and formatting instructions o Tooltips must be keyboard accessible o Tooltip text must be associated with the form control using aria-describedby  Provide both inline and form wide feedback 03 / 18 / 14Accessibility of HTML5 and Rich Internet Applications - CSUN

 Developers often use links as (icon) buttons o Side effect: screen reader will announce them as a link, not a button  This can be made accessible by setting role="button" o Screen reader announces link as button now, but also provides hint for using a button ("press" space to activate”) Screen reader lies: Links work through the Enter key, Space will scroll down the page o To make sure JAWS is not lying, you'll have to manually add a key event handler for the Space key. refresh 03 / 18 / 14Accessibility of HTML5 and Rich Internet Applications - CSUN

03 / 18 / 14Accessibility of HTML5 and Rich Internet Applications - CSUN

 Screen readers normally browse in ‘virtual mode’ o Navigates a virtual copy of the web page o Intercepts all keystrokes for its own navigation (e.g. ‘H’ for heading navigation)  For dynamic Web apps, virtual mode may need to be turned off o Interactive widgets need to define the keystrokes themselves o Content needs to be live, not a virtual copy o Automatically switches between virtual and non-virtual mode  role=“application” o Screen reader switches to non-virtual for these elements o Must provide all keyboard navigation when in role=“application” mode o Screen readers don’t intercept keystrokes then, so typical functions will not work 14Accessibility of HTML5 and Rich Internet Applications - CSUN / 18 / 14

 For apps with ‘reading’ or ‘editing’ sections o A reading pane in an client o Screen reader switches back to virtual mode, standard ‘web page reading’ shortcuts work again o Read / edit documents in a web application  Banner, complementary, contentinfo, main, navigation, search & form  When applied to a container inside an application role, the screen reader switches to virtual mode. 15Accessibility of HTML5 and Rich Internet Applications - CSUN / 18 / 14

 People that depend on assistive technology often: o Expect to be able to tab through all interactive elements o Expect virtual mode to work o Expect web content to be like it was in the late 90's: Simple page loads, no dynamic changes Simple Keyboard navigation: Tab, Enter, some times arrow keys  WAI – ARIA is meant for "Application UI's" o Requires virtual mode to be disabled o Requires custom shortcuts o Content can update dynamically Accessibility of HTML5 and Rich Internet Applications - CSUN / 18 / 14

 How do you convey this different navigation style to screen reader users? o Modern screen readers have "auto-forms" mode (virtual mode is automatically turned off where applicable o Screen readers will provide basic instructions for interactions o Less experienced users will likely be confused  Sighted keyboard users do not get any instructions at all Accessibility of HTML5 and Rich Internet Applications - CSUN / 18 / 14

 A tab list widget: o Web 1.0: Tab through every tab in the list o Web 2.0: Tab list takes up one tab stop, arrow keys are used for switching  Which one is correct?  What will the end user expect? Accessibility of HTML5 and Rich Internet Applications - CSUN / 18 / 14

Accessibility of HTML5 and Rich Internet Applications - CSUN

 Use role="dialog", combined with: o Aria-labelledby (for dialog title) o Aria-describedby (for dialog message text)  Focus management o When dialog opens, focus should move to first focusable element inside the dialog o Focus should "wrap" inside dialog and be contained by it. o For modal dialogs: No keyboard access with background content should be possible o For non modal dialogs: provide shortcut to switch between dialog and main page o Support closing dialogs using buttons and Escape key o When the dialog closes, focus should be placed back on a logical element, e.g. the button that triggered the dialog.  For modal dialogs: prevent virtual navigation to background using aria-hidden="true"  If dialog supports moving or resizing, these features must be keyboard accessible Accessibility of HTML5 and Rich Internet Applications - CSUN / 18 / 14

 According to the ARIA Best Practices document: o A dialog is a special type of "application window" o All content must be (associated with) keyboard accessible content. Regular static is content not allowed. o Virtual navigation by screen readers is not allowed  This works for simple dialogs… o But not for complex dialog content often found in real life projects, which may have a large amount of static content o To force support for virtual navigation, role=“document” can be wrapped around the dialog content, but it’s an ugly hack.  Focus management o For dialogs with a large amount of (scrollable) content, the first focusable element may be too far down. Moving focus to it would cause a lot of content to be skipped Accessibility of HTML5 and Rich Internet Applications - CSUN / 18 / 14

Accessibility of HTML5 and Rich Internet Applications - CSUN For Your Information Close …

03 / 18 / 14Accessibility of HTML5 and Rich Internet Applications - CSUN Start of dialog For Your Information Close … End of dialog

03 / 18 / 14Accessibility of HTML5 and Rich Internet Applications - CSUN

 Three types of hiding: 1. Hiding content visually and from AT: 2. Hiding content visually, but not from AT 3. Hiding content from AT, but not visually 03 / 18 / 14Accessibility of HTML5 and Rich Internet Applications - CSUN

 Display: none; o Hides content both visually and from AT products o Only works when CSS is supported (by user agent, user, or AT product) o Only use to hide content that still ‘makes sense’ E.g. contents of a collapsible section o Do not use for content that provides incorrect information E.g. preloaded error messages that are not applicable at the moment, or stale content Instead, this content should be removed from the DOM completely 03 / 18 / 14Accessibility of HTML5 and Rich Internet Applications - CSUN

 Hiding content off-screen will still make it available for screen readers, without it being visible  Useful to provide extra information to screen reader users or users that do not support CSS o E.g. add hidden headings, screen reader instructions, role & state info for older technology /* Old */.offscreen { position: absolute; left: -999em; } /* New */.offscreen { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); } 03 / 18 / 14Accessibility of HTML5 and Rich Internet Applications - CSUN

 Sometimes developers want to hide content from screen readers, e.g.: o Duplicate controls o Redundant information that was already provided through semantic markup.  Difficult to achieve: o Role=“presentation” will remove native role, but content is still visible for AT products o Aria-hidden=“true” provides a solution: Not supported well in older technology 03 / 18 / 14Accessibility of HTML5 and Rich Internet Applications - CSUN

A Small Font 03 / 18 / 14Accessibility of HTML5 and Rich Internet Applications - CSUN  Supported by the latest versions of major browsers and assistive technology.  Use with care: only for redundant/decorative content  NEVER use directly on focusable elements

03 / 18 / 14Accessibility of HTML5 and Rich Internet Applications - CSUN

 still alive and kicking o In HTML5 it’s allowed to nest headings  Summary attribute obsolete in HTML5 Animals Name Age Species / 18 / 14Accessibility of HTML5 and Rich Internet Applications - CSUN

 Some developers will use multiple HTML elements to create one single grid. For example: o One for the header row, one for the body rows o One for every single row  Why? Because this is easier to manage, style, position, drag & drop, etc.  Screen reader does not perceive one single table, but it sees two ore more separate tables o Association between column headers and cells is broken o Screen reader's table navigation is broken 03 / 18 / 14Accessibility of HTML5 and Rich Internet Applications - CSUN

 If using a single table is not feasible, use ARIA to fix the grid structure as perceived by the screen reader o Use role="presentation" to hide the original table elements form the screen readers o Use a combination of "grid", "row", "gridcell", "columnheader" roles to make the screen reader see one big grid. 03 / 18 / 14Accessibility of HTML5 and Rich Internet Applications - CSUN

 Using ARIA to create a correct grid structure Dog Names Cat Names Cow names Fido Whiskers Clarabella 03 / 18 / 14Accessibility of HTML5 and Rich Internet Applications - CSUN

03 / 18 / 14Accessibility of HTML5 and Rich Internet Applications - CSUN

 Some widgets use scrolling or animation to "slide" content into view o Example: a carousel widget: A long list of items, of which only a few are visible at a time o Example: A table that only shows a few columns at a time, and can be scrolled horizontally through "next" and "previous" buttons.  Content that slides into view is often not hidden properly, but "clipped" through overflow:hidden styles o Content is visually hidden, but still part of the tab order and (unintentionally) reachable to keyboard users 03 / 18 / 14Accessibility of HTML5 and Rich Internet Applications - CSUN

 When content is scrolled out of view, ensure that it's not reachable to keyboard users  To do this, the "visibility: hidden" style is often easiest to use: o When content is scrolled out of view, set visibility: hidden o Before content is about to be scrolled into view, set visibility: visible o Use "visibility: hidden" over "display: none" to maintain the content's layout, which is often needed for the scrolling / animation to function correctly 03 / 18 / 14Accessibility of HTML5 and Rich Internet Applications - CSUN

03 / 18 / 14Accessibility of HTML5 and Rich Internet Applications - CSUN

 When Windows High Contrast Mode is enabled, the following will happen: o Background and foreground colors are overridden o Background images are removed  Custom user style sheets often apply similar changes  UI libraries often uses background images for icons, which means these icons become invisible Accessibility of HTML5 and Rich Internet Applications - CSUN / 18 / 14

 It's possible to detect the effects of high contrast mode or a custom stylesheet using scripting: o On page load, create an off screen div element, assign border and background styles to it, and inspect computed styles to see if they are overridden  This detection can be used to "fix" issues related to HC mode, e.g.: o Unhide hidden text to replace background images  Font icons are great for high contrast mode, but: o Not supported on all devices o Break easily when custom user stylesheet overrides font-family “Invisible font” solution is a promising workaround for this issue 03 / 18 / 14Accessibility of HTML5 and Rich Internet Applications - CSUN

 Calling all AT users, QA testers, web developers, vendors, and general accessibility enthusiasts  Find and report AT Bugs  Track us on Twitter #TPGBB 03 / 18 / 14Accessibility of HTML5 and Rich Internet Applications - CSUN

 Thursday, March 20th  5.30pm to 6.30pm  Suite 3233, Harbor tower, Manchester Grand Hyatt 03 / 18 / 14Accessibility of HTML5 and Rich Internet Applications - CSUN

 Questions?  Additional Topics?  Course Material: / 18 / 14Accessibility of HTML5 and Rich Internet Applications - CSUN