Revolutionizing GitHub Accessibility: Introducing the Open-Sourced Alt-Text-Bot for Inclusive Image Sharing
As Seen On
Revolutionizing GitHub Accessibility: Introducing the Open-Sourced Alt-Text-Bot for Inclusive Image Sharing
In today’s ever-evolving digital world, the need for accessible technology remains an essential component for inclusivity. This enables individuals who rely on screen readers and other assistive technologies to have an equal experience with the content shared online. To help bridge the accessibility gap on GitHub, a revolutionary open-source tool known as the accessibility-alt-text-bot has been introduced. The bot’s primary purpose is to leave automated reminders for users to add alt text to images shared on GitHub Issues, Discussions, and Pull Requests. In this article, we will cover the importance of this bot and provide a guide for setting it up in your GitHub repository.
The Current State of GitHub Accessibility
While GitHub is known for its extensive features and usability, one crucial aspect that has not been explicitly addressed is the platform’s image accessibility. GitHub’s user interface (UI) does not include built-in reminders for adding alt text to images, making it more challenging to create accessible content for all users. This lack of accessibility support results in users who rely on screen readers or those with cognitive disabilities often experiencing barriers when trying to access essential repositories and discussions. Moreover, it puts the onus on accessibility advocates to remind contributors to add alt text, resulting in advocacy fatigue and accessibility burnout.
Introducing the Accessibility-Alt-Text-Bot: A Solution for a More Inclusive GitHub
The development and launch of the accessibility-alt-text-bot aim to empower users and reduce the burden of constant advocacy for accessible content. The bot, working as a GitHub Action, sends automated reminders to users to include alt text when an image is posted on Issues, Discussions, and Pull Requests. By reminding users to be more inclusive with their content, the bot takes the pressure off those pushing for accessibility and creates a wider system for advocating accessibility at scale.
Setting Up the Alt-Text-Bot in Your Repository
To begin implementing the accessible-alt-text-bot in your GitHub repository, follow these simple steps:
- Navigate to the repository where you want to set up the bot.
- In the repository, create a directory called “.github” (if it does not already exist) and create a new file named “workflows” within this directory.
- Create a YAML file titled “alt-text-bot.yml” inside the “workflows” folder.
- Add the following code to the YAML file:
name: Alt Text Bot Reminder
on:
issues:
types: [opened, edited]
issue_comment:
types: [created, edited]
pull_request:
types: [opened, edited]
pull_request_review_comment:
types: [created, edited]
discussion:
types: [opened, edited]
discussion_comment:
types: [created, edited]
jobs:
reminder:
runs-on: ubuntu-latest
steps:
- name: Leave a comment reminding to add alt text
uses: accessibility-alt-text-bot/accessibility-alt-text-bot-action@v1
- Commit your changes and enable the GitHub Action. The bot will now scan new content for missing alt text and leave reminders when necessary.
The Power of Open-Sourced Tools in Accessibility Efforts
Open sourcing the accessibility-alt-text-bot serves as a call-to-action for the wider developer community to contribute to the development and enhancement of accessibility features. This approach fosters collaboration, experimentation, and innovation, resulting in more comprehensive tools to assist users who rely on assistive technologies. Open sourcing drives the accessibility community forward and promotes the creation of a more inclusive digital environment.
In conclusion, the accessibility-alt-text-bot holds the potential to drive significant positive changes in the efforts to improve accessibility on GitHub. By providing a streamlined approach to reminding users about the importance of alt text, the bot eases the burden of advocacy and supports the creation of a more inclusive platform. Moving forward, it is crucial to continue investing time and resources into developing and implementing accessible solutions across various platforms to ensure all users can access and benefit from digital content.
Casey Jones
Up until working with Casey, we had only had poor to mediocre experiences outsourcing work to agencies. Casey & the team at CJ&CO are the exception to the rule.
Communication was beyond great, his understanding of our vision was phenomenal, and instead of needing babysitting like the other agencies we worked with, he was not only completely dependable but also gave us sound suggestions on how to get better results, at the risk of us not needing him for the initial job we requested (absolute gem).
This has truly been the first time we worked with someone outside of our business that quickly grasped our vision, and that I could completely forget about and would still deliver above expectations.
I honestly can't wait to work in many more projects together!
Disclaimer
*The information this blog provides is for general informational purposes only and is not intended as financial or professional advice. The information may not reflect current developments and may be changed or updated without notice. Any opinions expressed on this blog are the author’s own and do not necessarily reflect the views of the author’s employer or any other organization. You should not act or rely on any information contained in this blog without first seeking the advice of a professional. No representation or warranty, express or implied, is made as to the accuracy or completeness of the information contained in this blog. The author and affiliated parties assume no liability for any errors or omissions.