Web Accessibility: Integrating VLibras & Testing with Screen Readers
Practical takeaways from my web accessibility studies: embedding Brazil's official VLibras Sign Language widget and testing keyboard flow with screen readers.
Web accessibility starts with solid fundamentals: semantic HTML, logical keyboard focus order, and real screen reader testing rather than relying only on automated scores. Back in 2022, I saved two hands-on labs on GitHub exploring this: vlibras (https://github.com/rniguel/vlibras) and accessibility-testing (https://github.com/rniguel/accessibility-testing).
Embedding the VLibras Sign Language Widget
For Brazilian web apps offering Brazilian Sign Language (Libras) translation, embedding the official VLibras widget takes a lightweight container plus the plugin script before </body>:
<div vw class="enabled">
<div vw-access-button class="active"></div>
<div vw-plugin-wrapper>
<div class="vw-plugin-top-wrapper"></div>
</div>
</div>
<script src="https://vlibras.gov.br/app/vlibras-plugin.js"></script>
<script>
new window.VLibras.Widget("https://vlibras.gov.br/app");
</script>In that lab, adjusting div[vw] vertical placement in CSS (margin-top: -10vw !important;) prevented the floating button from overlapping fixed UI controls on the right edge.
Beyond Widgets: Screen Reader & Keyboard Testing
The accessibility-testing repo focused on navigating pages purely with a screen reader and keyboard shortcuts. Three habits from those tests still guide my React and Next.js work today:
1. Interactive triggers must be real <button> or <a> elements—not clickable <div> tags.
2. Icon-only buttons always need descriptive aria-label text.
3. Dialogs and drawers must support keyboard closing (Escape) and clean focus handling.
Final Thoughts
Assistive widgets like VLibras add valuable reach, while semantic HTML and keyboard testing ensure every visitor can actually navigate your app.
Miguel Riquelme
Front-end Engineer. Software Engineering MBA student at USP/Esalq.