accessibility

where to add the aria-modal attribute?

若如初见. 提交于 2019-12-11 10:19:10
问题 So I have a project in React where the modal does not have the proper markup. I know I need to have aria-modal="true" , but I am not 100% sure if this attribute is added everywhere I have a className . So for example: renderModal() { return ( <Modal isOpen={this.props.isOpen} onRequestClose={this.toggleModal} contentLabel="Address Book" className={this.props.parentClassName ? this.props.parentClassName + " address-modal" : "address-modal"} role="dialog" > {this.renderAddressForm()} </Modal> )

How to prevent Windows Narrator from reading hidden HTML tags?

廉价感情. 提交于 2019-12-11 10:18:32
问题 I have an HTML page, with multiple hidden elements that become visible only under certain circumstances. When I set the focus on the page wrapper (to read all the content), Windows Narrator reads all the elements, even the hidden ones. I have tried using aria-hidden="true", CSS display: none, HTML5 hidden attribute, all are completely ignored. So far, the only mechanism that I found that works is to remove this elements from the DOM, before setting the focus on the wrapper. But it's not an

Radio button keyboard trap

眉间皱痕 提交于 2019-12-11 10:07:27
问题 I'm creating a multiple choice question exercise and am having issues with keyboard accessibility. Basically, the user is not able to cycle through the list of radio buttons through the keyboard. When the "focus" cursor is over a radio button and the user pressed the arrow key to move onto the next radio button a keyboard trap occurs. Instead of simply focusing it, the radio button is selected instead and thus the answer is displayed. How can I stop radio buttons being selected when going

VoiceOver UIAccessibilityAnnouncementNotification tone of voice

断了今生、忘了曾经 提交于 2019-12-11 09:57:32
问题 Using UIAccessibilityPostNotification(UIAccessibilityAnnouncementNotification, string); to announce things with VoiceOver. This works great for summaries etc. The problem is in announcing entered/deleted text, VoiceOver uses a deeper tone when echoing the text you enter, and deeper still when you delete text. The documentation mentions no way to control the tone of Voice, is there some unicode character you can put in the string or any argument you can pass to do this? 来源: https:/

Setting protected/private properties from a different instance of the same class

久未见 提交于 2019-12-11 09:56:32
问题 If I have a class that contains properties with private set and protected set accessibility levels set, will I be able to change those properties on another instance of the same class? Note: I'm not on a machine which I can test this on right now, otherwise I'd just run the code below. For instance: public class Foo { public string A {get; private set;} public string B {get; protected set;} public void Bar() { var someOtherFoo = new Foo(); // Does this change someOtherFoo's A? someOtherFoo.A

iOS, is there a way to programmatically turn off three fingered zoom

血红的双手。 提交于 2019-12-11 09:45:39
问题 I have an iPad app that is being used as part of a museum exhibit, it runs in guided access mode. I have enabled three fingered zoom on the iPad for accessibility. Users are finding it confusing if the previous user has entered the zoom mode and left it zoomed in. The app times out and enters an attract mode after it is inactive for a period of time. When it enters the attract loop I would like to leave the zoomed mode, is it possible to do this programmatically or does it have to be done

Xamarin iOS - how can we set accessibility focus to a button programatically

一曲冷凌霜 提交于 2019-12-11 08:26:36
问题 In my xamarin ios application user need to choose "from date" and "to date" to load some data. For this there are two buttons provided so that clicking on each button date picker will be presented. The problem is after choosing "from date" from date picker the accessibility focus is going to top of the screen, where as the expected behaviour is to focus "to date" button. So trying to find a way to set focus to the button programmatically but it seems there is no way in xamarin ios. I have

Command line software for testing accessibility

こ雲淡風輕ζ 提交于 2019-12-11 08:24:24
问题 I've done some searching around and I can't seem to find any command line utilities out there that will allow me to evaluate accessibility on web pages. Essentially I want to automate the process of wget'ing a large number of websites and evaluating their accessibility. So I would have a cron job that would get all of the necessary pages and then run the evaluation software on them. The output would then be parsed into a website ranking accessibility. Does anyone know of anything that may

How to make screenreader not recognise an element as an element group?

白昼怎懂夜的黑 提交于 2019-12-11 08:10:01
问题 I'm currently trying to make a DOM element with one to several child elements as accessible as possible. The element will contain illustrative content using background images in several layers. I'm currently using a child element for providing the image description as described in this informative blog post about how to label illustrative content inside of a content group. The container element may also contain other child elements containing text content. An example element would currently

Change Talkback language dynamically?

萝らか妹 提交于 2019-12-11 07:56:34
问题 I have an application with a translation quiz and I want to make it accessible to blind people. The problem is that when I focus on a Spanish sentence (for example), Talkback reads it in English. Is there any way to trigger the Spanish TTS dynamically in Java? Thank you 回答1: Yes there is now! You have to wrap the string in a LocaleSpan (min sdk 17) and the latest version of TalkBack can switch language on the fly. What's new in Android Accessibility 2017 - https://youtu.be/h5rRNXzy1xo?t=11m