accessibility

If colours are accessible, will a gradient between those colours be accessible?

*爱你&永不变心* 提交于 2021-01-27 05:31:43
问题 I work on websites where accessibility is an absolute must have, we aim for at least AA standard. Typically we use resources such as https://contrast-ratio.com and https://contrastchecker.com to test a background colour against black or white text. In this instance let's take white (#fff) text at a size of 18px. Colour one: #546FAF has a ratio of 4.92 Colour two: #B349B1 has a ratio of 4.66 If I made a linear gradient between those two colours as a background, would #fff text at 18px be safe

Is there a way to programmatically trigger the TAB key to move the focus to the next focusable element? [duplicate]

百般思念 提交于 2021-01-27 02:55:06
问题 This question already has an answer here : Why doesn't simulating a tab keypress move focus to the next input field? (1 answer) Closed 4 years ago . I am writing a unit test to test the tab order on my webpage and I could not find a way to simulate the user's keying down of the TAB key to focus on the next focusable element, though this seems to be an easy task. jQuery is allowed while pure javascript solution is preferred. Any kind of help is appreciated. // TODO function triggerTab () { } $

Single label for two inputs

▼魔方 西西 提交于 2021-01-26 06:02:08
问题 I'm currently adding some date input to a form. I have a 'Start Date' and 'End Date' input but only want to use a single label ('Dates') for both inputs. Is it possible to do this? What are the accessibility concerns? My current thinking is to have a label 'Dates' that is shown then have two hidden labels for each input for screen readers etc. Is this the way to go? Are there any examples of large websites doing this kind of thing (Government websites if possible)? This is a project that may

Single label for two inputs

泪湿孤枕 提交于 2021-01-26 06:01:23
问题 I'm currently adding some date input to a form. I have a 'Start Date' and 'End Date' input but only want to use a single label ('Dates') for both inputs. Is it possible to do this? What are the accessibility concerns? My current thinking is to have a label 'Dates' that is shown then have two hidden labels for each input for screen readers etc. Is this the way to go? Are there any examples of large websites doing this kind of thing (Government websites if possible)? This is a project that may

Single label for two inputs

蓝咒 提交于 2021-01-26 06:01:07
问题 I'm currently adding some date input to a form. I have a 'Start Date' and 'End Date' input but only want to use a single label ('Dates') for both inputs. Is it possible to do this? What are the accessibility concerns? My current thinking is to have a label 'Dates' that is shown then have two hidden labels for each input for screen readers etc. Is this the way to go? Are there any examples of large websites doing this kind of thing (Government websites if possible)? This is a project that may

JAWS Screen Reader Repeats Tree Items in FireFox

爷,独闯天下 提交于 2021-01-24 08:20:58
问题 I have run into an issue with the JAWS screen reader & Firefox. I have a tree like the one below. Whenever any of the <a> elements gain focus, either by tabbing from the window or from the <button> , JAWS narrates the element three times . As far as i can tell, Firefox is the only browser that does this. Is there something wrong with my markup here? <nav role="tree"> <ol role="group"> <li role="presentation"> <a href="javascript:void(0)" role="treeitem">Parent Link 1</a> <ol role="group"> <li

Get view of AccessibilityNodeInfo to create overlay

杀马特。学长 韩版系。学妹 提交于 2021-01-20 20:13:58
问题 I'm writing a AccessibilityService and I want to create view overlays on the views from the current activity that the accessibility service can retrieve. I have no problems to retrieve all AccessibilityNodeInfo objects from the current activity, but I have no idea how to get the views from these objects to create overlays. Unfortunately there are only few examples regarding accessibility services. Maybe some of you already have experience with this topic. I hope you can help me! Thanks! EDIT:

Get view of AccessibilityNodeInfo to create overlay

给你一囗甜甜゛ 提交于 2021-01-20 20:12:31
问题 I'm writing a AccessibilityService and I want to create view overlays on the views from the current activity that the accessibility service can retrieve. I have no problems to retrieve all AccessibilityNodeInfo objects from the current activity, but I have no idea how to get the views from these objects to create overlays. Unfortunately there are only few examples regarding accessibility services. Maybe some of you already have experience with this topic. I hope you can help me! Thanks! EDIT:

Get view of AccessibilityNodeInfo to create overlay

我怕爱的太早我们不能终老 提交于 2021-01-20 20:12:28
问题 I'm writing a AccessibilityService and I want to create view overlays on the views from the current activity that the accessibility service can retrieve. I have no problems to retrieve all AccessibilityNodeInfo objects from the current activity, but I have no idea how to get the views from these objects to create overlays. Unfortunately there are only few examples regarding accessibility services. Maybe some of you already have experience with this topic. I hope you can help me! Thanks! EDIT:

Signal to screen readers that a div has became visible

别说谁变了你拦得住时间么 提交于 2021-01-05 07:43:26
问题 On a webpage, I have a number of events for which you can buy a ticket. When you press a button for a event, a number of prices will be visible inside the div of the event (they are made visible with javascript). How do I signal to accessibility programs that they should start read the contents of the newly visible div? Does this fall into the "popup" category? I ask this question again because it was incorrectly migrated to the superuser forum. 来源: https://stackoverflow.com/questions