a11yTips
33. Why the developers are not focusing on Accessibility?
15 July 2021This blog I have published originally at dev.to In the tech community, there is low awareness of accessibility. There are many reasons behind this:
Most of the online tech resources don't talk about accessibility. kudos to MDN for maintaining the accessibility section.
Bootcamps and tutorials doesn't teach accessibility
Accessibility is not part of any CS degree.
Whenever I see the code-reviews at work/open-source/boot-camps most of the comments are around:
JavaScript syntax
Using fancy syntax or tags
Developers just brag about their JS frameworks/libs skills and skip the importance of semantic code.
Developers who are putting JavaScript over semantic code are harming the skills and products they are building.
Senior developers not at all reviewing the code around:
Semantic code
DRY
Where to draw the line between HTML, CSS, and JS
SOLID principles
Junior or peer developers are not asking the questions to their senior developers at all during code reviews.
Eg: I have seen a code of a Bootcamp dev where the senior developer asked the junior developer to move the whole Navigation to javascript.
Reason: Sr Dev comment was - you are breaking DRY
as nav
code is repeating at every HTML
page.
The whole app was HTML pages, not SPA.
There were no comments on:
Tag of
nav
is wrong. It wasdiv
.The code used for creating navigation was not semantic at all. Instead of
<ul>
it was span.If the code will move to JavaScript how the content will be handled by Screen readers or translations.
How the keyboard 'focus' will work if the nav will move to JavaScript.
If the code-review will start pointing out:
Correct HTML tags
Cost of moving content and View to JavaScript
If Content and View required to be in JavaScript then how the accessibility will be taken care
Everyone in the team will get aware of the accessibility as well as from next time onwards developers will write 'correct' code not just code that 'works'.
As a Jr Developer: Ask questions. Do not just accept the code review.
As a senior developer: Do the right code review of everything, not just JS.