Skip to content

Commit

Permalink
fix(a11y): solve some issues (#1240)
Browse files Browse the repository at this point in the history
- Tabindex on the network is 0 now.
- All pages now declare their language.
- Manipulation buttons are buttons now.
- Manipulation buttons are tabbable now.
- Manipulation buttons can be triggered by the keyboard (enter, space).
- Manipulation close button has aria label.
  • Loading branch information
Thomaash authored Dec 18, 2020
1 parent 699da56 commit 979488e
Show file tree
Hide file tree
Showing 99 changed files with 192 additions and 155 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ of the project.

```html
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Network</title>
<script
Expand Down
2 changes: 1 addition & 1 deletion cypress/pages/events-target.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Cypress | Events Target</title>

Expand Down
2 changes: 1 addition & 1 deletion cypress/pages/pollution.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Cypress | Pollution</title>

Expand Down
2 changes: 1 addition & 1 deletion cypress/pages/universal.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Cypress | Universal</title>

Expand Down
2 changes: 1 addition & 1 deletion docs-kr/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="ko">
<head>
<meta charset="utf-8" />
<meta http-equiv="refresh" content="0;url=network/" />
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="refresh" content="0;url=network/" />
Expand Down
2 changes: 1 addition & 1 deletion examples/network/basicUsage.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Basic usage</title>

Expand Down
2 changes: 1 addition & 1 deletion examples/network/basic_usage/esnext.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Network | Basic Usage | ESNext Build</title>
Expand Down
2 changes: 1 addition & 1 deletion examples/network/basic_usage/legacy.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Network | Basic Usage | Legacy Build</title>
Expand Down
2 changes: 1 addition & 1 deletion examples/network/basic_usage/peer.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Network | Basic Usage | Peer Build</title>
Expand Down
2 changes: 1 addition & 1 deletion examples/network/basic_usage/standalone.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Network | Basic Usage | Standalone Build</title>
Expand Down
2 changes: 1 addition & 1 deletion examples/network/data/datasets.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Data | Dynamic Data</title>

Expand Down
2 changes: 1 addition & 1 deletion examples/network/data/dotLanguage/dotEdgeStyles.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Data | DOT edge styles</title>

Expand Down
3 changes: 2 additions & 1 deletion examples/network/data/dotLanguage/dotLanguage.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<html>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Vis Network | Data | DOT Language</title>

Expand Down
2 changes: 1 addition & 1 deletion examples/network/data/dotLanguage/dotPlayground.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Data | DOT language playground</title>

Expand Down
2 changes: 1 addition & 1 deletion examples/network/data/dynamicData.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Data | DataSet</title>

Expand Down
2 changes: 1 addition & 1 deletion examples/network/data/dynamicFiltering.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Data | Dynamic filtering</title>

Expand Down
2 changes: 1 addition & 1 deletion examples/network/data/importingFromGephi.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<!-- saved from url=(0044)http://kenedict.com/networks/worldcup14/vis/ , thanks Andre!-->
<html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF8" />
<title>Vis Network | Data | Importing from Gephi (JSON)</title>
Expand Down
2 changes: 1 addition & 1 deletion examples/network/data/scalingCustom.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Data | Custom Scaling</title>

Expand Down
2 changes: 1 addition & 1 deletion examples/network/data/scalingNodesEdges.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Data | Scaling Nodes and Edges</title>

Expand Down
2 changes: 1 addition & 1 deletion examples/network/data/scalingNodesEdgesLabels.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Data | Scaling Labels</title>

Expand Down
2 changes: 1 addition & 1 deletion examples/network/edgeStyles/arrowAlignment.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Edge Styles | Arrow Alignment</title>

Expand Down
2 changes: 1 addition & 1 deletion examples/network/edgeStyles/arrowTypes.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Edge Styles | Arrow Types</title>

Expand Down
2 changes: 1 addition & 1 deletion examples/network/edgeStyles/arrows.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Edge Styles | Arrows</title>

Expand Down
2 changes: 1 addition & 1 deletion examples/network/edgeStyles/background.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Edge Styles | Edge background</title>

Expand Down
2 changes: 1 addition & 1 deletion examples/network/edgeStyles/colors.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Edge Styles | Colors</title>

Expand Down
2 changes: 1 addition & 1 deletion examples/network/edgeStyles/dashes.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Edge Styles | Dashes</title>

Expand Down
2 changes: 1 addition & 1 deletion examples/network/edgeStyles/endPointOffsets.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Edge Styles | Endpoint Offsets</title>

Expand Down
2 changes: 1 addition & 1 deletion examples/network/edgeStyles/imageArrowHeads.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Vis Network | Edge Styles | Image Arrow Heads</title>
Expand Down
2 changes: 1 addition & 1 deletion examples/network/edgeStyles/selfReference.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Edge Styles | Self Reference</title>

Expand Down
2 changes: 1 addition & 1 deletion examples/network/edgeStyles/smooth.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Edge Styles | Static smooth curves</title>

Expand Down
2 changes: 1 addition & 1 deletion examples/network/edgeStyles/smoothWorldCup.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<!-- saved from url=(0044)http://kenedict.com/networks/worldcup14/vis/ , thanks Andre!-->
<html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF8" />
<title>
Expand Down
2 changes: 1 addition & 1 deletion examples/network/events/interactionEvents.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Events | Interaction events</title>

Expand Down
2 changes: 1 addition & 1 deletion examples/network/events/physicsEvents.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Events | Physics Events</title>

Expand Down
2 changes: 1 addition & 1 deletion examples/network/events/renderEvents.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Events | Rendering Events</title>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<html>
<html lang="en">
<head>
<title>Vis Network | Example Applications | Disassembler</title>
<style type="text/css">
Expand Down
2 changes: 1 addition & 1 deletion examples/network/exampleApplications/lesMiserables.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Example Applications | Les miserables</title>

Expand Down
2 changes: 1 addition & 1 deletion examples/network/exampleApplications/loadingBar.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Example Applications | Loading Bar</title>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<!-- saved from url=(0044)http://kenedict.com/networks/worldcup14/vis/ , thanks Andre!-->
<html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF8" />
<title>
Expand Down
2 changes: 1 addition & 1 deletion examples/network/exampleApplications/nodeLegend.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<!-- saved from url=(0046)http://visjs.org/examples/network/03_images.html -->
<html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Vis Network | Example Applications | Node Legend</title>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<!-- saved from url=(0044)http://kenedict.com/networks/worldcup14/vis/ , thanks Andre!-->
<html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF8" />
<title>Vis Network | Example Applications | World Cup Network</title>
Expand Down
3 changes: 2 additions & 1 deletion examples/network/imageSelected/imageSelected.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<html>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Vis Network | Node Styles | Selected/Unselected Image</title>

Expand Down
2 changes: 1 addition & 1 deletion examples/network/labels/labelAlignment.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Labels | Label Alignment</title>

Expand Down
2 changes: 1 addition & 1 deletion examples/network/labels/labelBackground.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Labels | Label Background</title>

Expand Down
2 changes: 1 addition & 1 deletion examples/network/labels/labelColorAndSize.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Labels | Label Color and Size</title>

Expand Down
2 changes: 1 addition & 1 deletion examples/network/labels/labelMargins.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Labels | Label Margins</title>

Expand Down
2 changes: 1 addition & 1 deletion examples/network/labels/labelMultifont.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Labels | Multifont Labels</title>

Expand Down
2 changes: 1 addition & 1 deletion examples/network/labels/labelStroke.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Labels | Label stroke</title>

Expand Down
2 changes: 1 addition & 1 deletion examples/network/labels/multilineText.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Labels | Multiline text</title>

Expand Down
2 changes: 1 addition & 1 deletion examples/network/layout/hierarchicalLayout.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Layouts | Hierarchical Layout</title>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>
Vis Network | Layouts | User Defined Hierarchical Layout (Big)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Layouts | Dynamic Hierarchical Layout Changes</title>

Expand Down
2 changes: 1 addition & 1 deletion examples/network/layout/hierarchicalLayoutMethods.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Layouts | Hierarchical Layout Methods</title>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Vis Network | Layouts | Hierarchical Layout Overlap Avoidance</title>

Expand Down
2 changes: 1 addition & 1 deletion examples/network/layout/hierarchicalLayoutUserdefined.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>
Vis Network | Layouts | User Defined Hierarchical Layout (Configurable)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Vis Network | Layouts | Hierarchical Layout without Physics</title>
Expand Down
Loading

0 comments on commit 979488e

Please sign in to comment.