wai-aria

Proper ARIA attribute for field/value pairs outside of a table?

帅比萌擦擦* 提交于 2020-12-11 09:03:25
问题 We need to layout a large amount of data. A simple table would work well, but we're making this entirely responsive so for simple field/value pairs, we're trying to avoid going too crazy with table markup to make things reflow a bit easier. In the past, I would have first gone with a definition list: <dl> <dt>Label</dt> <dd>Value</dd> </dl> but...they also had drawbacks...namely that the semantic value of this markup wasn't always recognized by screen readers and the like, so was often

Windows Narrator and aria-describedby

▼魔方 西西 提交于 2020-07-09 07:36:17
问题 I'm using aria-described by on a few radio buttons so that screen readers will first read the radio label and then the description text to give more information. Due to the structure of the page I can't use a fieldset. Many source accessibility validators will show an error if you have a label without a for attribute so I am using a div for the description text. <div id="desc">Choose a fruit</div> ... <label><input type="radio" aria-describedby="desc" />Apple</label> <label><input type="radio

Windows Narrator and aria-describedby

▼魔方 西西 提交于 2020-07-09 07:36:09
问题 I'm using aria-described by on a few radio buttons so that screen readers will first read the radio label and then the description text to give more information. Due to the structure of the page I can't use a fieldset. Many source accessibility validators will show an error if you have a label without a for attribute so I am using a div for the description text. <div id="desc">Choose a fruit</div> ... <label><input type="radio" aria-describedby="desc" />Apple</label> <label><input type="radio

Accessibility Questions on best practices for aria-describedby and form fields

天大地大妈咪最大 提交于 2020-06-27 06:26:46
问题 The following example is a typical form field for collecting a first name. I have an aria-describedby on the input referencing two different text-areas that help describe the inputs function. The first aria-describedby reference is what I called "Hint" and is basically the placeholder attribute text on the input (aka the shadow text you see in the back of the text box). The “Hint” text area is a span with a class to visibly hide it but will still be read by screen readers. The second aria

aria-live is interrupted by other labels, how to stop this behavior?

流过昼夜 提交于 2020-06-26 14:14:28
问题 I currently have this div with aria-live=assertive: <div id="accesibility__ready" aria-live="assertive" aria-atomic="true"></div> Currently in my js file I have a method for setting everything in page with a tabindex (first headlines) then the <p> 's. Once this method is finished I want to notify user through my aria live that he can now navigate with tab: var ariaAlert = document.getElementById('accesibility__ready'); ariaAlert.setAttribute('aria-label','Content updated tab navigation ready'

aria-live is interrupted by other labels, how to stop this behavior?

不羁的心 提交于 2020-06-26 14:14:01
问题 I currently have this div with aria-live=assertive: <div id="accesibility__ready" aria-live="assertive" aria-atomic="true"></div> Currently in my js file I have a method for setting everything in page with a tabindex (first headlines) then the <p> 's. Once this method is finished I want to notify user through my aria live that he can now navigate with tab: var ariaAlert = document.getElementById('accesibility__ready'); ariaAlert.setAttribute('aria-label','Content updated tab navigation ready'

How to hide a text and make it accessible by screen reader?

狂风中的少年 提交于 2020-06-22 04:34:39
问题 I have a simple text that gets updated on an action and I want that to be announced by the screen reader. But I don't want that text to be visible on the web page. I tried display: none and visibility: hidden , but seems like they are not accessible by the screen reader softwares. I found a way to make this work - that is by absolute positioning the element all the way with negative 999999 value which will make it off screen and hidden from the webpage. I am not really a fan of this solution.

Putting <a role> in Facelets composition shows message “Attribute role is not allowed here”

本秂侑毒 提交于 2020-06-18 12:28:29
问题 I just tried to setup my jsf project with bootstrap. Everything works fine except that when I added a bootstrap template that includes the " role " attribute. I get a message that says Attribute role is not allowed here I'm not good with design and I'm focusing more with the backend so I really need to use bootstrap. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http