Skip to content

Commit 81a448e

Browse files
authored
Merge pull request #13 from github/kh-update-readme
Update README to provide more details on how this action works.
2 parents 0f459be + b9c3f44 commit 81a448e

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

README.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
# Accessibility-alt-text-bot
22

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+
<img width="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.
413

514
## How to add this action to your repo
615

716
Copy this workflow into any repo you want the accessibility-alt-text-bot to run in.
817

9-
```
18+
```yml
1019
name: Accessibility-alt-text-bot
1120
on:
1221
issues:
@@ -26,22 +35,21 @@ jobs:
2635
uses: github/accessibility-alt-text-bot
2736
```
2837
29-
## Action stability
38+
### Action stability
3039
3140
To ensure you stay on a stable version of this action consider locking the action to a specific version.
3241
33-
```
42+
```yml
3443
uses: github/[email protected]
35-
```
44+
```
3645
3746
Replace the ref value with any commit hash.
3847
39-
## License
48+
## License
4049
4150
This project is licensed under the terms of the MIT open source license. Please refer to [MIT](./LICENSE.txt) for the full terms.
4251
43-
44-
## Maintainers
52+
## Maintainers
4553
4654
See [CODEOWNERS](.github/CODEOWNERS).
4755

0 commit comments

Comments
 (0)