accessibility

Should we put <input> inside <label>? [duplicate]

白昼怎懂夜的黑 提交于 2019-12-18 13:19:40
问题 This question already has answers here : Should I put input elements inside a label element? (12 answers) Closed 5 years ago . I saw 2 different method on same form example: on http://www.alistapart.com/articles/prettyaccessibleforms/ why they are using 2 method in first fieldset they are keeping input after label and in 2nd fieldset they are keeping input after label . Why? <fieldset> <legend>Delivery Details</legend> <ol> <li> <label for="name">Name<em>*</em></label> <input id="name" /> <

Programmatically enabling/disabling accessibility settings on Android device

≡放荡痞女 提交于 2019-12-18 12:27:13
问题 How can I programmatically enable/disable an android screen reader service such as TalkBack? I am developing a kiosk type application that will be installed on an Android device that will be loaned to visitors while they visit a particular museum. (We are still in the process of determining what device we will use.) The plan is to only allow users to use our app and not have access to the android settings application. However, we'd like to allow users to configure some accessibility settings.

Enabling keyboard navigation in the Bootstrap dropdown-menu

我只是一个虾纸丫 提交于 2019-12-18 12:23:26
问题 Is it possible to navigate using the keyboard to the drop down menu using Tab , and navigate using the arrow keys to the sub elements of the drop down? Here is the code I have now: <input type="text" value="click tab to jump to the drop down."/> <div class="bs-docs-example"> <div class="dropdown clearfix"> <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu" style="display: block; position: static; margin-bottom: 5px; *width: 180px;"> <li><a tabindex="-1" href="#">Menu Item A<

Is there a way to convert indentation in Python code to braces?

一笑奈何 提交于 2019-12-18 10:04:27
问题 I am a totally blind programmer who would like to learn Python. Unfortunately the fact that code blocks are represented with different levels of indentation is a major stumbling block. I was wondering if there were any tools available that would allow me to write code using braces or some other code block delimiter and then convert that format into a properly indented representation that the Python interpreter could use? 回答1: There's a solution to your problem that is distributed with python

How to access iPhone's general accessibility settings

谁说胖子不能爱 提交于 2019-12-18 09:46:31
问题 I need to access the iPhone's general accessibility settings; I need to know whether the user has turn on features such as "Speak Auto-text" or "White on Black" and respond to that programatically. I don't need to change the values, only read them. Also, if there's a way of defining (for my app) to ignore them (and set the corresponding support programatically) - that would be a good solution. Any suggestions? 回答1: You can't. I suspect this is by design. 回答2: what about UIKit accessibility

Image alt attribute best practices

社会主义新天地 提交于 2019-12-18 07:44:58
问题 What exactly is the intended use of the alt attribute on <img> tags? Should it describe the image, or should it provide meaningful replacement text for screen-readers (and people who have images turned off)? For example, if I have a short biography of a person on my website, and include a small photo of them, is it really meaningful to visually impaired users to have "Photo of John Smith" read out to them? 回答1: The HTML 5 spec has a huge section on this. Basically, the alt attribute should be

Difference between access specifier and access modifier

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-18 04:17:17
问题 I've read around on the internet and I've heard people say Access specifiers :: The access specifier determines how accessible the field is to code in other classes. Access ranges from totally accessible to totally inaccessible. You can optionally declare a field with an access specifier keyword: public, private, or protected. Access Modifiers :: You can optionally declare a field with a modifier keyword: final or volatile and/or static and/or transient, abstract, etc. Is there any difference

Reading notifications using AccessibilityService

谁说我不能喝 提交于 2019-12-18 04:14:54
问题 I've recently tried to read incoming notifications using AccessibilityService . I know reading notifications using NotificationListenerService , but that's not what I need (for compatibility with lower android versions). My problem is, OnServiceConnected() never get called, even though in my settings, I've gave my app the neccessary premisions. Here is my code: public class NotificationAccessibilityService extends AccessibilityService{ protected void onServiceConnected() { Log.d("Tortuga",

In HTML, how can I have text that is only accessible for screen readers (i.e. for blind people)?

眉间皱痕 提交于 2019-12-18 03:53:57
问题 I have a website that has colored divs with numbers, e.g. a red block with the number 2 inside of it. The color is important to understanding. A blind user emailed me asking if I could make it say "2 red" for his screen reader. I tried adding this as an alt="2 red" but he said that didn't do anything. He thinks it might only read alt tags for images. Is there a good way to do this for divs? 回答1: As far as alt text, you are correct, that only works for images.. But you can use aria-label in

Styling disabled <select> (dropdown boxes) in HTML

会有一股神秘感。 提交于 2019-12-18 03:52:59
问题 One of our customers has a hard time reading the grey text in disabled controls in our web-based application: We would like to change the style to a light grey background and a black text. Unfortunately, most browsers (including IE, which is what the customer is using) ignore the color: ... CSS attribute on disabled controls, so we cannot change the foreground color. For text boxes ( input type="text" ), this can easily be workarounded by using the readonly instead of the disabled attribute.