accessibility

performaction ACTION_SET_SELECTION not working properly

梦想的初衷 提交于 2020-04-18 07:28:25
问题 I am new at working with the accessibility library of android i have a lot of troubles. But there is one i think is not my fault: I want to use the accessibilitynodeinfo to start a seekbar from the middle: if(mychildinfo.getClassName().toString().contains("SeekBar")){ Bundle b = new Bundle(); b.putInt(AccessibilityNodeInfo.ACTION_ARGUMENT_SELECTION_START_INT, 49); b.putInt(AccessibilityNodeInfo.ACTION_ARGUMENT_SELECTION_END_INT, 50); mychildinfo.performAction(AccessibilityNodeInfo.ACTION_SET

Accessibility Custom Actions aren't announced in Swift

蹲街弑〆低调 提交于 2020-04-14 04:08:10
问题 When I add accessibilityCustomActions to an object, it works correctly on the device as far as being able to swipe up and down through the actions and select them, but there are no announcements that there are "Actions available" - should I write this in to the accessibilityLabel myself? I thought that by adding the custom actions to my object, it would announce "Actions available" automatically, or "Swipe up to select..." 回答1: I thought that by adding the custom actions to my object, it

UIButton frame does not increase with accessibility large font using Swift 5

前提是你 提交于 2020-04-13 19:56:27
问题 Large accessibility font size for UIButton title (.body or .headline) does not increase the frame of button but only increase the title text. It can clearly be seen in the screenshot below: Constraints are only top, leading and trailing, also in code I have added 2 lines: button.adjustsImageSizeForAccessibilityContentSizeCategory = true button.titleLabel?.numberOfLines = 0 The yellow background colour is of the button, thus identifying that only tappable area is the yellow area. I want to

iOS UITest: How to test custom accessibility actions?

做~自己de王妃 提交于 2020-03-21 11:51:05
问题 I want to support VoiceOver. I have an UIButton inside of an UITableViewCell . According to a best practice I have disabled the button for accessibility ( .isAccessibilityElement = false ) and implemented a custom accessibility action for the cell ( accessibilityCustomActions, NSAccessibilityCustomAction ). This way VoiceOver would not find and read the button as an own element. To make the feature behind the button accessible, I have added a custom accessibility action to the cell. With the

Catalyst 'SwiftUI.AccessibilityNode' is not a known serializable element

a 夏天 提交于 2020-03-18 03:19:53
问题 I created a fresh iOS Single Page App (including SwiftUI) with Xcode 11.1 and enabled Mac Catalyst. After running the fresh Project on my Mac (macOS 10.15 of course) I get the following errors after tapping once on the window. 2019-10-18 12:59:48.479186+0200 test[3130:122148] Metal API Validation Enabled 2019-10-18 12:59:50.960734+0200 test[3130:122148] [AXRuntimeCommon] Unknown client: test 2019-10-18 12:59:50.962261+0200 test[3130:122148] [AXRuntimeCommon] This class 'SwiftUI

Catalyst 'SwiftUI.AccessibilityNode' is not a known serializable element

折月煮酒 提交于 2020-03-18 03:19:14
问题 I created a fresh iOS Single Page App (including SwiftUI) with Xcode 11.1 and enabled Mac Catalyst. After running the fresh Project on my Mac (macOS 10.15 of course) I get the following errors after tapping once on the window. 2019-10-18 12:59:48.479186+0200 test[3130:122148] Metal API Validation Enabled 2019-10-18 12:59:50.960734+0200 test[3130:122148] [AXRuntimeCommon] Unknown client: test 2019-10-18 12:59:50.962261+0200 test[3130:122148] [AXRuntimeCommon] This class 'SwiftUI

Detect High Contrast extension use in Chrome browser

巧了我就是萌 提交于 2020-03-14 12:24:55
问题 I am trying to make my website accessible in high-contrast mode. In order to detect when high-contrast mode is enabled, I created a JavaScript method to detect if background images are disabled, because high-contrast mode disables background images. Then if the browser is in high-contrast mode, I append a CSS file to make fixes for displaying in high contrast. This works fine in Firefox, Edge, and IE, but Chrome uses its own extension to create high-contrast, and it does not disable the

Detect High Contrast extension use in Chrome browser

醉酒当歌 提交于 2020-03-14 12:23:12
问题 I am trying to make my website accessible in high-contrast mode. In order to detect when high-contrast mode is enabled, I created a JavaScript method to detect if background images are disabled, because high-contrast mode disables background images. Then if the browser is in high-contrast mode, I append a CSS file to make fixes for displaying in high contrast. This works fine in Firefox, Edge, and IE, but Chrome uses its own extension to create high-contrast, and it does not disable the

How to prevent screen reader focus (not referring to keyboard focus) from leaving predefined area (e.g., modal)

坚强是说给别人听的谎言 提交于 2020-03-04 20:57:11
问题 I've been trying to figure out how to contain the screen reader focus within a certain area. When I say screen reader focus, I don't mean the default browser focus that one can move with tabbing/shift-tabbing. I predominantly implement accessibility while using Voiceover on Mac, and when you turn that on, a new focus box appears on the page and reads out the information that it is 'highlighting'. At that point if you were to tab, both the browser and the screenreader focus move concurrently.

How to prevent screen reader focus (not referring to keyboard focus) from leaving predefined area (e.g., modal)

末鹿安然 提交于 2020-03-04 20:54:06
问题 I've been trying to figure out how to contain the screen reader focus within a certain area. When I say screen reader focus, I don't mean the default browser focus that one can move with tabbing/shift-tabbing. I predominantly implement accessibility while using Voiceover on Mac, and when you turn that on, a new focus box appears on the page and reads out the information that it is 'highlighting'. At that point if you were to tab, both the browser and the screenreader focus move concurrently.