Skip to content

Commit be47b66

Browse files
authored
Merge pull request #53 from mpolidori/fix/WCAG-2.1-compliance
Fix/wcag 2.1 compliance
2 parents 171c533 + acf496d commit be47b66

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

dist/App.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ function DataView(props) {
163163
className: "App"
164164
}, _react.default.createElement("p", null, t('Data view unavailable.')), _react.default.createElement("a", {
165165
href: view.resources[0].path,
166+
"aria-label": t('Download ') + view.resources[0].title + t(' data'),
166167
className: "text-primary font-bold"
167168
}, t('Download the data.')));
168169
} else {

dist/__snapshots__/App.test.js.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,7 @@ exports[`renders an iframe for web spec type 1`] = `
589589
<iframe
590590
height="475px"
591591
src="http://example.com"
592+
title="Embedded content"
592593
width="100%"
593594
>
594595
Your browser doesn't support "iframe".

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@datopian/datapackage-views-js",
3-
"version": "1.3.16",
3+
"version": "1.3.17",
44
"private": false,
55
"main": "/dist/App.js",
66
"module": "/dist/App.js",

src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export function DataView(props) {
120120
return (
121121
<div className="App">
122122
<p>{t('Data view unavailable.')}</p>
123-
<a href={view.resources[0].path} className="text-primary font-bold">{t('Download the data.')}</a>
123+
<a href={view.resources[0].path} aria-label={t('Download ') + view.resources[0].title + t(' data')} className="text-primary font-bold">{t('Download the data.')}</a>
124124
</div>
125125
)
126126
} else {

0 commit comments

Comments
 (0)