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
+40-8Lines changed: 40 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,21 @@
1
1
# Accessibility-alt-text-bot
2
2
3
-
An action to remind users to add alt text to their issue descriptions and comments.
3
+
This action supports accessible content sharing on GitHub by leaving an automated reminder whenever an image is shared on a GitHub Issue or Pull request 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.
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).
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:
9
+
10
+
<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
+
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.
4
13
5
14
## How to add this action to your repo
6
15
7
16
Copy this workflow into any repo you want the accessibility-alt-text-bot to run in.
8
17
9
-
```
18
+
```yml
10
19
name: Accessibility-alt-text-bot
11
20
on:
12
21
issues:
@@ -28,22 +37,21 @@ jobs:
28
37
uses: github/accessibility-alt-text-bot
29
38
```
30
39
31
-
## Action stability
40
+
### Action stability
32
41
33
42
To ensure you stay on a stable version of this action consider locking the action to a specific version.
0 commit comments