Skip to content

Commit c6d7e7c

Browse files
committed
feat: add accessibility link (#9)
* feat: add accessibility link * feat: add a test for the accessibility link * refactor: lint
1 parent 6067819 commit c6d7e7c

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

src/components/Footer.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ class SiteFooter extends React.Component {
8080
{this.renderLinkIfExists(process.env.PRIVACY_POLICY_URL, 'Privacy Policy')}
8181
{this.renderLinkIfExists(process.env.HONOR_CODE_URL, 'Honor Code')}
8282
{this.renderLinkIfExists(process.env.Contact, 'Contact')}
83+
{this.renderLinkIfExists(process.env.ACCESSIBILITY_URL, 'Accessibility')}
8384
{this.renderLinkIfExists(process.env.SUPPORT_CENTER_URL, process.env.SUPPORT_CENTER_TEXT || 'FAQ & Help')}
8485
</ul>
8586
</div>

src/components/__snapshots__/Footer.test.jsx.snap

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ exports[`<Footer /> renders correctly renders with a language selector 1`] = `
6363
Honor Code
6464
</a>
6565
</li>
66+
<li>
67+
<a
68+
href="https://accessibility.mit.edu/"
69+
>
70+
Accessibility
71+
</a>
72+
</li>
6673
<li>
6774
<a
6875
href="http://localhost:18000/about"
@@ -182,6 +189,13 @@ exports[`<Footer /> renders correctly renders without a language selector 1`] =
182189
Honor Code
183190
</a>
184191
</li>
192+
<li>
193+
<a
194+
href="https://accessibility.mit.edu/"
195+
>
196+
Accessibility
197+
</a>
198+
</li>
185199
<li>
186200
<a
187201
href="http://localhost:18000/about"
@@ -262,6 +276,13 @@ exports[`<Footer /> renders correctly renders without a language selector in es
262276
Honor Code
263277
</a>
264278
</li>
279+
<li>
280+
<a
281+
href="https://accessibility.mit.edu/"
282+
>
283+
Accessibility
284+
</a>
285+
</li>
265286
<li>
266287
<a
267288
href="http://localhost:18000/about"

src/setupTest.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ process.env.SITE_URL = 'http://localhost:18000/';
3131
process.env.LOGO_ALT_TEXT = 'alt text';
3232
process.env.SHOW_LOGO = true;
3333
process.env.SUPPORT_EMAIL = '[email protected]';
34+
process.env.ACCESSIBILITY_URL = 'https://accessibility.mit.edu/';

0 commit comments

Comments
 (0)