Skip to content

Commit 8db8285

Browse files
committed
accessibility and seo optimizations
1 parent ed85cc5 commit 8db8285

File tree

5 files changed

+16
-6
lines changed

5 files changed

+16
-6
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"eslint-config-airbnb": "^18.2.0",
99
"eslint-plugin-jest": "^23.20.0",
1010
"gh-pages": "^3.1.0",
11-
"perseids-react-components": "^1.1.1",
11+
"perseids-react-components": "^1.1.2",
1212
"prop-types": "^15.7.2",
1313
"react": "^16.13.1",
1414
"react-clipboard.js": "^2.0.16",

public/index.html

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
content="width=device-width, initial-scale=1, shrink-to-fit=no"
99
/>
1010
<meta name="theme-color" content="#000000" />
11+
<meta
12+
name="description"
13+
content="%REACT_APP_DESCRIPTION%"
14+
/>
1115
<!--
1216
manifest.json provides metadata used when your web app is installed on a
1317
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/

public/robots.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
User-agent: *
2+
Disallow:

src/components/Input/Input.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,10 @@ class Input extends Component {
111111
<div className="row pt-4 mb-3">
112112
<div className="col-12 text-center">
113113
<h1 className="h3 font-weight-normal">
114-
Polytonic Greek Virtual Keyboard
114+
{/* eslint-disable-next-line jsx-a11y/label-has-associated-control */}
115+
<label htmlFor="polytonic-keyboard-input-and-output" className="mb-0">
116+
Polytonic Greek Virtual Keyboard
117+
</label>
115118
</h1>
116119
</div>
117120
</div>
@@ -120,6 +123,7 @@ class Input extends Component {
120123
<textarea
121124
ref={(r) => { this.textareaRef = r; }}
122125
className="form-control input-lg"
126+
id="polytonic-keyboard-input-and-output"
123127
type="text"
124128
placeholder="Type using the virtual keyboard ..."
125129
autoComplete="off"

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -7656,10 +7656,10 @@ performance-now@^2.1.0:
76567656
resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b"
76577657
integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=
76587658

7659-
perseids-react-components@^1.1.1:
7660-
version "1.1.1"
7661-
resolved "https://registry.yarnpkg.com/perseids-react-components/-/perseids-react-components-1.1.1.tgz#d3b17df487c40d5fd1a25c027861e3b52e9c755e"
7662-
integrity sha512-/yoNpMi4eNCUb8G0JJfwVQcv40JRlnXmjQtAa3gEQaK5cCxs6i4vxWqDMBZxC5zJb6+dIJqN6dMWZz3lQjWEXA==
7659+
perseids-react-components@^1.1.2:
7660+
version "1.1.2"
7661+
resolved "https://registry.yarnpkg.com/perseids-react-components/-/perseids-react-components-1.1.2.tgz#6051fc8f98d0c507d12324fa06658e68c3371694"
7662+
integrity sha512-3Jpa6/93Iz+nVwelROMabp16dPQMI8K/92oH2ikFvcjVcHGi8OsaPUiW/NVsrFS7mSGo987QCklii40kRjlYvw==
76637663
dependencies:
76647664
"@primer/octicons" "^10.0.0"
76657665
prop-types "^15.7.2"

0 commit comments

Comments
 (0)