You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-11Lines changed: 24 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,29 @@
1
1
# Accessibility-alt-text-bot
2
2
3
-
This action supports accessible content sharing on GitHub by leaving an automated reminder whenever an image is shared on a GitHub Issue, Pull request, or Discussion without meaningful alternative text (alt text).
4
-
Alternative text helps convey the context of the image to those who use assistive technologies such as a screen reader and removes accessibility barriers.
3
+
This action reminds users to add a meaningful alternative text to their images.
4
+
Alternative text helps users who rely on tools like screen readers, and lowers accessibility barriers.
5
5
6
-
For guidance on setting alternative text, see [Alternative text for images on Primer](https://primer.style/design/guides/accessibility/alternative-text-for-images).
6
+
The action can check:
7
7
8
-
Images on GitHub default to using the filename as alt text. This action flags when the alt text has not been updated from the default:
8
+
- Issues
9
+
- Pull Requests
10
+
- Discussions
11
+
12
+
To learn how to write good alternative text, read [Alternative text for images on Primer](https://primer.style/design/guides/accessibility/alternative-text-for-images).
13
+
14
+
## Why you may need this action
15
+
16
+
Images on GitHub default to using the filename as alt text.
17
+
This action flags when the alt text has not been updated from the default:
9
18
10
19
<imgwidth="758"alt="Screenshot of an automated actions comment on a GitHub issue that says, 'Uh oh! @monalisa, the image you shared is missing helpful alt text...' and contains instructions for setting alt text"src="https://github.com/github/accessibility-alt-text-bot/assets/16447748/c61cc9c6-f8c8-4bfb-becb-a155c2c9711d">
11
20
12
-
**Note**: Ordinarily, setting `alt=""` will mark images as decorative. However, GitHub currently renders all images as a link. To avoid rendering links with no names, we recommend always setting alt text on images in GitHub.
21
+
> **Note**
22
+
> Normally, setting `alt=""` marks images as decorative. But GitHub renders all images as a link. To avoid rendering links with no names, we recommend always setting alt text on images in GitHub.
13
23
14
24
## How to add this action to your repo
15
25
16
-
Copy this workflow into any repo you want the accessibility-alt-text-bot to run in.
26
+
Copy this workflow into any repo you want the `accessibility-alt-text-bot` to run in:
@@ -56,7 +67,8 @@ Replace the ref value with any commit hash.
56
67
57
68
## License
58
69
59
-
This project is licensed under the terms of the MIT open source license. Please refer to [MIT](./LICENSE.txt) for the full terms.
70
+
This project is licensed under the terms of the MIT open source license.
71
+
Please read [the MIT license file](./LICENSE.txt) for the full terms.
60
72
61
73
## Maintainers
62
74
@@ -68,7 +80,7 @@ TODO: Be explicit about support expectations.
68
80
69
81
## Acknowledgement
70
82
71
-
Please read [Contributing Guide](./CONTRIBUTING.md) for more information.
83
+
Please read our [Contributing Guide](./CONTRIBUTING.md) for more information.
72
84
73
85
## Contributors ✨
74
86
@@ -92,4 +104,5 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
92
104
93
105
<!-- ALL-CONTRIBUTORS-LIST:END -->
94
106
95
-
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
107
+
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification.
0 commit comments