fix accessibility issues shown in chrome lighthouse audit #118
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Before:
![before accessibility fix](https://user-images.githubusercontent.com/23227030/66700488-92385080-ed0e-11e9-994e-55b1597c3806.png)
![after accessibility fix](https://user-images.githubusercontent.com/23227030/66700490-982e3180-ed0e-11e9-80c9-996733281927.png)
After:
Wrapping div:
![wrapping div](https://user-images.githubusercontent.com/23227030/66700501-a8461100-ed0e-11e9-9fd3-a2f82fd3bddd.png)
Note: We are using react below React v16.2.0, or else I would prefer to use React Fragment. Still div does not cause any side effect in the application layout.
Reference:
https://reactjs.org/docs/fragments.html
https://getstream.io/blog/react-fragments/
https://stackoverflow.com/questions/33766085/how-to-avoid-extra-wrapping-div-in-react
Button discernible text:
![button discernible text](https://user-images.githubusercontent.com/23227030/66700521-c875d000-ed0e-11e9-872b-b3cdf17cd95d.png)
References:
https://dequeuniversity.com/rules/axe/3.1/button-name?application=lighthouse
https://www.w3schools.com/tags/att_global_title.asp
A minor change in the colors:
![before minor change](https://user-images.githubusercontent.com/23227030/66700630-4e464b00-ed10-11e9-9529-58e1a238b722.png)
![after minor change](https://user-images.githubusercontent.com/23227030/66700634-52726880-ed10-11e9-87a4-2f037f038094.png)
Before:
After:
Let me know if find you any concern, I'll update the PR accordingly.