diff options
author | Tayane Fernandes <tayane.rmf@gmail.com> | 2017-02-06 14:22:05 -0200 |
---|---|---|
committer | Tayane Fernandes <tayane.rmf@gmail.com> | 2017-02-06 19:02:19 -0200 |
commit | 91bc3bbf22f81f6da767e35430eaeb8127089f5b (patch) | |
tree | e0adcad639f9c14d2eef0970c760b576a0079df1 /web-ui/app | |
parent | a384b422e54695a2c1931640006403561fde7585 (diff) |
[#922] Add accessibility warning in dev env
with @anikarni
Diffstat (limited to 'web-ui/app')
-rw-r--r-- | web-ui/app/js/account_recovery.js | 3 | ||||
-rw-r--r-- | web-ui/app/js/account_recovery/page.js | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/web-ui/app/js/account_recovery.js b/web-ui/app/js/account_recovery.js index 02183574..a48415f8 100644 --- a/web-ui/app/js/account_recovery.js +++ b/web-ui/app/js/account_recovery.js @@ -1,6 +1,9 @@ import React from 'react' import { render } from 'react-dom' import Page from 'js/account_recovery/page' +import a11y from 'react-a11y' + +if(process.env.NODE_ENV === 'development') a11y(React); render( <Page/>, diff --git a/web-ui/app/js/account_recovery/page.js b/web-ui/app/js/account_recovery/page.js index 447331bc..55df9ee7 100644 --- a/web-ui/app/js/account_recovery/page.js +++ b/web-ui/app/js/account_recovery/page.js @@ -5,7 +5,7 @@ import 'scss/account_recovery/page.scss' const Page = () => ( <div className='container'> <form> - <img src='assets/images/forgot-my-password.svg' /> + <img src='assets/images/forgot-my-password.svg' alt="Esqueci minha senha!"/> <h1>E se você esquecer sua senha?</h1> <p>Informe outro e-mail que você usa regularmente. Esse será o seu e-mail de recuperação.</p> <p>Instruções serão enviadas para esse e-mail, guarde com carinho.</p> |