Skip to content

Commit bedf114

Browse files
Improve aria-labels for example icon buttons and add guidance (#4191)
* Improve aria-labels for example icon buttons and add guidance * test(vrt): update snapshots --------- Co-authored-by: joshblack <[email protected]>
1 parent 6c605a0 commit bedf114

12 files changed

+16
-10
lines changed
600 Bytes
Loading
545 Bytes
Loading
518 Bytes
Loading
600 Bytes
Loading
600 Bytes
Loading
547 Bytes
Loading
578 Bytes
Loading
551 Bytes
Loading
547 Bytes
Loading

src/Button/IconButton.docs.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@
3535
"defaultValue": "",
3636
"description": "provide an octicon. It will be placed in the center of the button"
3737
},
38+
{
39+
"name": "aria-label",
40+
"type": "string",
41+
"defaultValue": "",
42+
"description": "Use an aria label to describe the functionality of the button. Please refer to [our guidance on alt text](https://primer.style/guides/accessibility/alternative-text-for-images) for tips on writing good alternative text."
43+
},
3844
{
3945
"name": "sx",
4046
"type": "SystemStyleObject"

0 commit comments

Comments
 (0)