Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/minimal-data-grid/data/references.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ refId,value
author,Isabel Del Castillo
authorEmail,[email protected]
title,Data Grid Example 1: Minimal Data Grid
reference,reference/2021-3-8_151542/dataGrids.html
reference,reference/2022-4-27_115334/dataGrids.html
designPattern,https://w3c.github.io/aria-practices/#grid
example,https://w3c.github.io/aria-practices/examples/grid/dataGrids.html
grid,https://w3c.github.io/aria/#grid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,20 @@
position: relative;
}

.edit-text-button::after {
background-image: url("../imgs/pencil-icon.png");
background-position: center;
background-repeat: no-repeat;
background-size: 44px;
content: " ";
height: 17px;
opacity: 0.6;
position: absolute;
right: -24px;
top: 0;
width: 20px;
}

.edit-text-button:hover,
.edit-text-button:focus {
color: black;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,105 +1,105 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Data Grid Examples</title>

<!-- js and css for this example. -->
<link href="css/dataGrids.css" rel="stylesheet">
<script src="js/utils.js" type="text/javascript"></script> <!-- pulled in from examples/js directory in aria-practices repo -->
<script src="js/dataGrid.js" type="text/javascript"></script>
<script src="js/dataGrids.js" type="text/javascript"></script>
</head>
<body>
<main>
<h1>Data Grid Examples</h1>
<p>
Following is an example implementation of the
<a href="https://w3c.github.io/aria-practices/#grid">design pattern for grid</a>
that demonstrate the keyboard interactions and ARIA features that enable accessible, interactive presentation
of tabular information. The following grid presents a set of financial
transactions via a simple grid with minimum ARIA markup and keyboard support.
</p>
<section>
<h2>Examples</h2>
<section>
<div class="example-header">
<h3 id="ex1_label">Example 1: Minimal Data Grid</h3>
</div>
<div role="separator" id="ex1_start_sep" aria-labelledby="ex1_start_sep ex1_label" aria-label="Start of"></div>
<div id="ex1">
<h4 id="grid1Label">Transactions January 1 through January 6</h4>
<a id="beforelink" href="#beforelink">Navigate forwards from here</a>
<table id="ex1-grid" role="grid" aria-labelledby="grid1Label" class="data">
<tr>
<th>Date</th>
<th>Type</th>
<th>Description</th>
<th>Amount</th>
<th>Balance</th>
</tr>
<tr>
<td tabindex="-1">01-Jan-16</td>
<td tabindex="-1">Deposit</td>
<td>
<a tabindex="-1" href="#">Cash Deposit</a>
</td>
<td tabindex="-1">$1,000,000.00</td>
<td tabindex="-1">$1,000,000.00</td>
</tr>
<tr>
<td tabindex="-1">02-Jan-16</td>
<td tabindex="-1">Debit</td>
<td>
<a tabindex="-1" href="#">Down Town Grocery</a>
</td>
<td tabindex="-1">$250.00</td>
<td tabindex="-1">$999,750.00</td>
</tr>
<tr>
<td tabindex="-1">03-Jan-16</td>
<td tabindex="-1">Debit</td>
<td>
<a tabindex="-1" href="#">Hot Coffee</a>
</td>
<td tabindex="-1">$9.00</td>
<td tabindex="-1">$999,741.00</td>
</tr>
<tr>
<td tabindex="-1">04-Jan-16</td>
<td tabindex="-1">Debit</td>
<td>
<a tabindex="-1" href="#">The Filling Station</a>
</td>
<td tabindex="-1">$88.00</td>
<td tabindex="-1">$999,653.00</td>
</tr>
<tr>
<td tabindex="-1">05-Jan-16</td>
<td tabindex="-1">Debit</td>
<td>
<a tabindex="-1" href="#">Tinker's Hardware</a>
</td>
<td tabindex="-1">$3,421.00</td>
<td tabindex="-1">$996,232.00</td>
</tr>
<tr>
<td tabindex="-1">06-Jan-16</td>
<td tabindex="-1">Debit</td>
<td>
<a tabindex="-1" href="#">Cutey's Salon</a>
</td>
<td tabindex="-1">$700.00</td>
<td tabindex="-1">$995,532.00</td>
</tr>
</table>
<a id="afterlink" href="#afterlink">Navigate backwards from here</a>
</div>
<div role="separator" id="ex1_end_sep" aria-labelledby="ex1_end_sep ex1_label" aria-label="End of"></div>
</section>
</section>

<div id="arrow-keys-indicator" class="hidden"></div>
</main>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Data Grid Examples</title>
<!-- js and css for this example. -->
<link href="css/dataGrids.css" rel="stylesheet">
<script src="js/utils.js" type="text/javascript"></script> <!-- pulled in from examples/js directory in aria-practices repo -->
<script src="js/dataGrid.js" type="text/javascript"></script>
<script src="js/dataGrids.js" type="text/javascript"></script>
</head>
<body>
<main>
<h1>Data Grid Examples</h1>
<p>
Following is an example implementation of the
<a href="https://w3c.github.io/aria-practices/#grid">design pattern for grid</a>
that demonstrate the keyboard interactions and ARIA features that enable accessible, interactive presentation
of tabular information. The following grid presents a set of financial
transactions via a simple grid with minimum ARIA markup and keyboard support.
</p>
<section>
<h2>Examples</h2>
<section>
<div class="example-header">
<h3 id="ex1_label">Example 1: Minimal Data Grid</h3>
</div>
<div role="separator" id="ex1_start_sep" aria-labelledby="ex1_start_sep ex1_label" aria-label="Start of"></div>
<div id="ex1">
<h4 id="grid1Label">Transactions January 1 through January 6</h4>
<a id="beforelink" href="#beforelink">Navigate forwards from here</a>
<table id="ex1-grid" role="grid" aria-labelledby="grid1Label" class="data">
<tr>
<th>Date</th>
<th>Type</th>
<th>Description</th>
<th>Amount</th>
<th>Balance</th>
</tr>
<tr>
<td tabindex="-1">01-Jan-16</td>
<td tabindex="-1">Deposit</td>
<td>
<a tabindex="-1" href="#">Cash Deposit</a>
</td>
<td tabindex="-1">$1,000,000.00</td>
<td tabindex="-1">$1,000,000.00</td>
</tr>
<tr>
<td tabindex="-1">02-Jan-16</td>
<td tabindex="-1">Debit</td>
<td>
<a tabindex="-1" href="#">Down Town Grocery</a>
</td>
<td tabindex="-1">$250.00</td>
<td tabindex="-1">$999,750.00</td>
</tr>
<tr>
<td tabindex="-1">03-Jan-16</td>
<td tabindex="-1">Debit</td>
<td>
<a tabindex="-1" href="#">Hot Coffee</a>
</td>
<td tabindex="-1">$9.00</td>
<td tabindex="-1">$999,741.00</td>
</tr>
<tr>
<td tabindex="-1">04-Jan-16</td>
<td tabindex="-1">Debit</td>
<td>
<a tabindex="-1" href="#">The Filling Station</a>
</td>
<td tabindex="-1">$88.00</td>
<td tabindex="-1">$999,653.00</td>
</tr>
<tr>
<td tabindex="-1">05-Jan-16</td>
<td tabindex="-1">Debit</td>
<td>
<a tabindex="-1" href="#">Tinker's Hardware</a>
</td>
<td tabindex="-1">$3,421.00</td>
<td tabindex="-1">$996,232.00</td>
</tr>
<tr>
<td tabindex="-1">06-Jan-16</td>
<td tabindex="-1">Debit</td>
<td>
<a tabindex="-1" href="#">Cutey's Salon</a>
</td>
<td tabindex="-1">$700.00</td>
<td tabindex="-1">$995,532.00</td>
</tr>
</table>
<a id="afterlink" href="#afterlink">Navigate backwards from here</a>
</div>
<div role="separator" id="ex1_end_sep" aria-labelledby="ex1_end_sep ex1_label" aria-label="End of"></div>
</section>
</section>
<div id="arrow-keys-indicator" class="hidden"></div>
</main>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta charset="utf-8">
<title>Data Grid Examples</title>

<!-- js and css for this example. -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta charset="utf-8">
<title>Data Grid Examples</title>

<!-- js and css for this example. -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta charset="utf-8">
<title>Data Grid Examples</title>

<!-- js and css for this example. -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta charset="utf-8">
<title>Data Grid Examples</title>

<!-- js and css for this example. -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta charset="utf-8">
<title>Data Grid Examples</title>

<!-- js and css for this example. -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta charset="utf-8">
<title>Data Grid Examples</title>

<!-- js and css for this example. -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta charset="utf-8">
<title>Data Grid Examples</title>

<!-- js and css for this example. -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta charset="utf-8">
<title>Data Grid Examples</title>

<!-- js and css for this example. -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta charset="utf-8">
<title>Data Grid Examples</title>

<!-- js and css for this example. -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta charset="utf-8">
<title>Data Grid Examples</title>

<!-- js and css for this example. -->
Expand Down
Loading