How to make Meteor.js accessible, for example. blind people?

There is no body on the Meteor.js site, without markup, how can I make the site accessible to the blind, deaf, etc.

+4
source share
1 answer

W3C has an accessibility initiative specifically designed for rich web applications. The concept is too big to summarize here, but consists of some best practices, as well as tags and properties that revolve around the so-called ARIA

In addition, the Mozilla Development Network has a dedicated section and FAQ to get you started.

The example simply puts it like this: an example of a line of execution in direct markup

<div id="percent-loaded" role="progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100" />

, javascript, , , html:

// Find the progress bar <div> in the DOM.
var progressBar = document.getElementById("percent-loaded");

// Set its ARIA roles and states, so that assistive technologies know what kind of widget it is.
progressBar.setAttribute("role", "progressbar");
progressBar.setAttribute("aria-valuemin", 0);
progressBar.setAttribute("aria-valuemax", 100);

// Create a function that can be called at any time to update the value of the progress bar.
function updateProgress(percentComplete) {
  progressBar.setAttribute("aria-valuenow", percentComplete);
}

Meteor, -, .

+6

Source: https://habr.com/ru/post/1528988/


All Articles