wai-aria

how to handle WAI ARIA role=“listbox”

空扰寡人 提交于 2019-12-03 17:03:01
I have a list of options from which one can be selected. For all intents and purposes HTML's <select> element covers this. Since we need a different visual presentation, I'm looking at using WAI ARIA role="listbox" . I'm unclear on how to use aria-activedescendant , aria-selected and aria-checked . Questions regarding focus/active state: If I use aria-activedescendant on the listbox to point to the [role="option"] that is currently active (has "virtual focus"), I would use [aria-selected] . How would best I tell the option element itself that it is active (has "virtual focus") to represent

Can you use an <aside> element inside a <section role=“main”> element?

浪尽此生 提交于 2019-12-03 10:01:31
I'm in the process of improving accessibility in my HTML using HTML5 and WAI-ARIA. It is OK to have the following set up? <!-- main content --> <section id="main" role="main"> <h1>The main content</h1> <!-- This div needs to be here for styling reasons --> <div class="the-content"> <p>All the text that goes with the main content</p> </div> <!-- the sidebar --> <aside id="sidebar" role="complementary"> <h2>A title</h2> <p>Some text</p> <aside> </section> The thing I'm not sure of is if I should have the <aside> element outside of the <section> and the role="main" container. Does that matter? It

How does CSS opacity affect accessibility?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 05:50:20
After browsing a number of Google and other SO articles, I've decided to ask my question plainly in hopes of a simple, direct answer. To add one further step to the discussion on Does opacity:0 have exactly the same effect as visibility:hidden : I understand that display:none and visibility:hidden hide elements from screenreaders and the like, but what about opacity:0 ? The table in one of the answers to the linked question notes that opacity participates in taborder , so does that necessarily mean it will be mapped to the accessibility API ? Setting a giant negative text-indent is typically

The purpose of using “aria-labelledby” on already labeled input elements?

余生颓废 提交于 2019-12-03 04:39:15
问题 Many ARIA demonstration websites use code such as: <label for="name" id="label-name">Your Name</label> <input id="name" aria-labelledby="label-name" type="text"> But what's the purpose of using aria-labelledby attribute in this case? The input element has already been labeled by the label element which is using for attribute, isn't it? 回答1: There's some good examples of its use at Mozilla Developer pages. Perhaps the best of their examples is where it's used to associate a popup menu with the

Can someone explain the HTML5 aria-* attribute?

你离开我真会死。 提交于 2019-12-03 00:10:58
问题 I wanted to know what the aria-* attributes are used for. What values can they have, and are they defined values or can I create my own values? 回答1: ARIA stands for Accessible Rich Internet Applications and is designed to improve the accessibility of Rich Internet Applications, i.e. to make them more usable for people with disabilities. Help on the various attributes is available here. I don't think you can create your own ARIA attributes. 来源: https://stackoverflow.com/questions/4176844/can

Proper ARIA handling of breadcrumb navigation

允我心安 提交于 2019-12-02 19:25:46
What can be done to improve the accessibility of a breadcrumb menu similar to: <ul class="breadcrumbs" aria-label="breadcrumb navigation" role="navigation"> <li><a href="~/">Home</a></li> <li><a href="~/news">News</a></li> <li class="unavailable"><a href="#">@Model.Title</a></li> </ul> Given in this example Home is the site root, News is the first child, and the unavailable class is the current item the /news/article item. Is there anything that could be done to improve this such as using rel attributes or aria-level attributes? I would avoid the use of aria-level and use a <ol> element

Can someone explain the HTML5 aria-* attribute?

寵の児 提交于 2019-12-02 13:55:26
I wanted to know what the aria-* attributes are used for. What values can they have, and are they defined values or can I create my own values? ARIA stands for Accessible Rich Internet Applications and is designed to improve the accessibility of Rich Internet Applications, i.e. to make them more usable for people with disabilities. Help on the various attributes is available here . I don't think you can create your own ARIA attributes. 来源: https://stackoverflow.com/questions/4176844/can-someone-explain-the-html5-aria-attribute

Multiple Headers and ARIA Roles

寵の児 提交于 2019-12-02 08:59:35
I have an HTML Structure which really has 2 headers: At the tippity top of the page it has some navigation items and buttons, below that is another section which holds the logo and what I would call the main navigation. Both are sectioned off in wrappers because of full width CSS3 gradients so my structure looks something like this: <div id="topWrap"> <div id="topNavWrap"> <nav id="utilityLinks"> <ul> <li><a href="#">Home</a></li> <li><a href="#">Page</a></li> <li><a href="#">Page</a></li> <li><a href="#">Page</a></li> <li><a href="#">Page</a></li> </ul> </nav> <div id="quickLinks"> <ul> <li>

Is presence of aria-hidden sufficient or is value set to “true” required (aria-hidden=“true”)

时间秒杀一切 提交于 2019-12-02 02:30:19
The html "hidden" attribute is a boolean and does NOT need a value set. It's mere presence is sufficient. What about the "aria-hidden" attribute? Is it's mere presence sufficient? Or does it require the value "true" to be set? aria-hidden must have a value of true|false. Note, however, that aria-hidden is not needed if you are using the hidden attribute or if you are using CSS visibility:none or display:hidden . All three of these latter three ways to hide will also hide the element from a screen reader. You only need aria-hidden="true" if there's something on the display that you want to hide

aria-hidden true read by JAWS

时光怂恿深爱的人放手 提交于 2019-12-02 01:18:17
问题 Using jQuery add role alert in #div1, read #div2 content even if it is hidden for JAWS. <div id="div1"> some content <div id="div2" aria-hidden="true"> some content 2 for div </div> </div> 回答1: Currently, JAWS does not support aria-hidden state in both Internet Explorer and Firefox. You can use role="presentation" though it is not recommended. See also: Official JAWS aria support list Donald Evans's blog 回答2: Support for the aria-hidden attribute was added to JAWS in their 13.0.718 update