Skip to content

Commit

Permalink
feat(ai-label): add overview image & accessibility table (#4247)
Browse files Browse the repository at this point in the history
* feat(ai-label): add overview image & accessibility table

* fix(ai-label): move accessibility section

* fix(ai-label) add to usage
  • Loading branch information
ariellalgilmore committed Sep 10, 2024
1 parent 9c3eb30 commit e23e1b3
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
5 changes: 5 additions & 0 deletions src/components/ComponentOverview/images/AI label.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 6 additions & 7 deletions src/data/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
"screenreader": "manual"
}
},
{
"component": "AI label",
"testing": {
"screenreader": "manual"
}
},
{
"component": "Aspect ratio",
"overview": false,
Expand Down Expand Up @@ -400,13 +406,6 @@
"screenreader": "manual"
}
},
{
"component": "Slug",
"overview": false,
"testing": {
"screenreader": false
}
},
{
"component": "Structured list",
"testing": {
Expand Down
4 changes: 4 additions & 0 deletions src/pages/components/ai-label/accessibility.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ description: The AI label indicates an instance of AI in the UI.
tabs: ['Usage', 'Style', 'Code', 'Accessibility']
---

import A11yStatus from 'components/A11yStatus';

<PageDescription>

No accessibility annotations are needed for AI labels, but keep these
Expand Down Expand Up @@ -89,3 +91,5 @@ custom component.
- The icon button has `aria-label="AI - Show information"`.
- The button uses `aria-expanded` to set toggletip visibility and
`aria-controls` to handle navigation to the content.

<A11yStatus layout="table" components="AI label" />
2 changes: 2 additions & 0 deletions src/pages/components/ai-label/usage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ been changed to better reflect its usage.
]}
/>

<A11yStatus layout="cards" components="AI label" />

## Overview

The AI label is more than just an indicator of AI instances in the UI. It’s also
Expand Down

0 comments on commit e23e1b3

Please sign in to comment.