accessibility | A repo to organize the guidelines and best practices | User Interface library
kandi X-RAY | accessibility Summary
kandi X-RAY | accessibility Summary
This repo will contain the guidelines and best practices for 508 accessibility at 18F. The site is in draft.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of accessibility
accessibility Key Features
accessibility Examples and Code Snippets
Community Discussions
Trending Discussions on accessibility
QUESTION
I developed an app using rshiny, https://smandape.shinyapps.io/mmdit/. I am trying to make it WCAG 2.1 accessible. I am using WAVE (Web accessibility evaluation tool) to check for accessibility. Currently, the errors popping are related to 'missing form label'. These errors are specifically for the code fileInput or rabiobuttons (5 errors are on Data import tab). For example, around the following code. WAVE shows the error for the placeholder for fileInput.
...ANSWER
Answered 2021-Jun-15 at 03:54fileInput accessibility was one of the things changed in the Shiny v1.6 release: https://shiny.rstudio.com/reference/shiny/1.6.0/upgrade.html
Closed #2929: Fixed keyboard accessibility for file picker button: keyboard users can now tab to focus on fileInput() widget. (#2937)
Are you definitely using v1.6? It looks like you are, so you may have identified a bug in the shiny framework.
EDIT: I had a look at the code for the fileInput control, and it looks to me like the input and label elements aren't properly linked together. I reported it as an issue: https://github.com/rstudio/shiny/issues/3426
QUESTION
I'm reading through the WAI-ARIA specs and they state "The main role is a non-obtrusive alternative for 'skip to main content' links".
Now, I've never heard this, and the first few Google results I've seen are either out-of-date or point right back to the spec. Is there enough (any?) support among accessibility tools to consider phasing out "skip to content" links when a main role is present?
...ANSWER
Answered 2021-Jun-14 at 19:57What would a keyboard user who doesn't use Assistive Tech do?
I personally think this is just poorly worded and is trying to say that it offers an alternative way to navigate for Assistive Tech that doesn't intrude on normal operations (as screen reader users for example rarely use Tab and are more likely to navigate my sections or headings and then by links...which would catch skip links obviously).
If all else fails or advice seems to conflict, you should always follow advice in WCAG over WAI-ARIA spec anyway and WCAG is pretty clear that skip links are a level A requirement.
And if you still aren't sure - go user experience over guidance and compliance every time!
Skip links offer a much better user experience to keyboard only users without assistive tech and have very little impact on screen reader users so use them.
As a final note on this - it is 2021 - unless you are supporting IE8 or older (and even I don't advocate for that sort of madness!) you shouldn't need role="main"
and instead just use a element.
QUESTION
ANSWER
Answered 2021-Jun-14 at 17:58You can use the concept of Common
class.
Just make a Class named common:
QUESTION
I'm using ESLint with Angular and I don't like having extra code like (observable | async) === (false | null | undefined)
instead of just (observable | async)
. How do I disable that rule?
ANSWER
Answered 2021-Apr-01 at 17:13add "@angular-eslint/template/no-negated-async": "off"
to the html portion of the esLint rules section
QUESTION
I'm looking into utilizing accessibility APIs provided by macOS and Windows for an application.
The AX stuff for macOS works fine, I can get all the elements of a native Cocoa application.
The Windows APIs is also promising.
However, apps built with frameworks like Electron and such, which incorporate a "web view" are not accessible through the native APIs. They just appear as a black box. This is also the case using the Accessibility Inspector utility for macOS.
I'm not convinced this is a dead end though, because the macOS VoiceOver utility can dig into the web elements and inspect them. Are there separate APIs I need to use to get access to the web elements?
...ANSWER
Answered 2021-Feb-22 at 10:13Ok, just to answer my own question, the key is to set the AXManualAccessibility
to true before querying the app's accessibility elements.
https://www.electronjs.org/docs/tutorial/accessibility#macos
QUESTION
I am developing a barcode app and save the data to hive. What I need to know is there a way to export the saved hive database to a backup file and be able to retrieve it for instance if the app crashed or your phone is lost. This is for blind accessibility. Want to export the data to a file that I can save to my pc to store and if something happens I do not have to scan all the products again to build the database. If hive can not do this can someone point me in a direction of which flutter dart database can do this. Thank you
Ok the answer did not work for me. Here is a copy of my model file
...ANSWER
Answered 2021-Jun-08 at 10:24There is not a "out-of-the-box" solution for that as far as I know. It depends a lot on your use case of how you want to do that (since there are many ways). For a complete example of how I did that for my app, you can take a look here: https://github.com/Kounex/obs_blade/blob/master/lib/views/settings/logs/log_detail/log_detail.dart (I made use of the share package in order to easily export it - but that's not necessary)
Flutter also has its own documentation on reading and writing files (https://flutter.dev/docs/cookbook/persistence/reading-writing-files) - I will add some information to round it up:
Storage locationFirst of all we have to think about where to store the "backup file". Flutter exposes common paths on its own which you can make use of (additionally the path_provider package gives you more flexibility). If you want this backup file to be temporarily, you can for example use:
QUESTION
For desktop browser sizes I have a navbar across the top of the page, when browser reduces to mobile size it becomes a hamburger menu. As the menu is hidden at mobile size, then for accessibility reasons I believe that, the elements within the menu need to have attributes of tabindex=-1
and aria-hidden=true
. The website is being built using HTML/Jinja2, CSS, client side JS and Python/Flask.
As you can see from the CodePen below I am able to toggle the aria-hidden
attribute once the menu has been opened.
[My demonstration repsonsive menu using CodePen] (https://codepen.io/janlikescodepen/pen/wvJmdBZ)
...ANSWER
Answered 2021-Jun-03 at 21:01Have a look at the window resize
event -
https://developer.mozilla.org/en-US/docs/Web/API/Window/resize_event
As well as window.innerWidth
-
https://developer.mozilla.org/en-US/docs/Web/API/window/innerWidth
The resize
event listens for when the window size changes, and the innerWidth
will tell you what size the window is so that you may conditionally modify the DOM depending on the window size.
Here is a simple example of what you may be looking to do -
QUESTION
I see a lot of discussion on the internet about I am creating a single-page-app and my navigation component is responsible for rendering / hiding different sections of the website. Only one section would be visible at a time, so I'm treating each section as if it was a unique page with its own route. My navigation controls are buttons, instead of links. I did this because there is nothing valid that I'm aware of, which I can put inside the hrefs (given that the hidden content is not present in the DOM). I read on the internet that buttons must have styling to identify the priority of the button, for accessibility reasons. Ideally, I want the buttons to look like links since they behave similarly to links (although not identical). Are there any accessibility concerns with styling buttons to look like links? Would it make more sense to style these buttons as buttons? If they should look like buttons then what should be the priority? Does it make more sense just to hide the hidden "pages" with css, so that I can turn the buttons into Here is the typical markup for single page apps tags that look like buttons, and rules that all links must obey. However, I am confused about
tags that are styled to look like links.
tags and add an href?
ANSWER
Answered 2021-Jun-06 at 19:50As stated on MDN Navigation expects to have a
links as children. So if you want to prevent any accesibility issue, I suggest you to stick to them, just remove the href
attribute and add a type="button"
to your a
tags.
QUESTION
I have a Xamarin app that was not meant to handle the talkback functionality of android, because for it to work well it had to be build in a specific way.
My app is a little order, and I simply can't make a do-over of the whole thing.
So, what is happening? My Xamarin app is made with non-native libs, that are not supported by the Talkback, so, when the user turns on the Talkback functionality the app effectively stops receiving the DPAD events since they are handled by the systems Accessibility Service.
That service, gets the events, and tries to handle them within my app, but, since my components are non-native, the system does not recognize them and the DPAD is wasted, hence, the illusion that the DPADs are not working.
So, what do you have to do if you just want to handle the DPADs (and nothing else) yourself with Talkback on?
The answer to this post will contain the code that describes the following behavior:
...ANSWER
Answered 2021-Jun-08 at 08:10The first step is to create a class that inherits the AccessibilityDelegateCompat in order to create our own Accessibility Service.
QUESTION
I am exploring tools I can use for automated Accessibility Testing and wanted to try axe-core with TestCafe. I am an advocate of TestCafe, I love that is a lightweight tool and doesn't have dependencies on WebDriver. The docs are great and the scripting is easy.
I have however found that @testcafe-community/axe and its predecessor axe-testcafe do not report all violations while axe-core with selenium and axe-webdriverjs do. For example, running with axe-webdriverjs, I have the following code and resulting output showing the violations of a localhost page I am checking -
Code:
...ANSWER
Answered 2021-Jun-04 at 16:42The documentation for axe-core states that you need to specify which rules you intend to test against using axe.run
options.
Landmarks are discussed in WCAG 1.3.6., which is a "Level AAA" item. It appears that axe-core is only capable of testing against "Level A" and "Level AA." In your example, the item is not listed by the tool as a WCAG failure, but rather a best-practices recommendation. This may be why it isn't showing up in your other tools.
If you can easily implement this recommendation, then I'd say go ahead and do it. If not, I wouldn't let something like this stop my code from going into production. Landmarks are nice-to-have, but it's far more important that you meet all "Level A" requirements and as many "Level AA" requirements as you reasonably can.
It's worth noting that any automated accessibility testing tool is nothing more than a starting point for manual evaluation. These tools often generate tons of false positives (and sometimes miss important things!) because it's often not possible to algorithmically determine whether something is genuinely useful to human visitors.
I've also seen pages/apps that pass automated tools with no errors (Wave, Axe, etc.), but they are completely impossible to use with assistive technology.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install accessibility
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page