|
| 1 | +Element Template |
| 2 | +=========== |
| 3 | +import Tabs from '@theme/Tabs'; |
| 4 | +import TabItem from '@theme/TabItem'; |
| 5 | + |
| 6 | +:::tip |
| 7 | +This is an empty template, intended to be used as a starting point for adding UI elements to the library. Try to keep it consistent with other elements and fill out all relevant sections; sections marked "optional" can be removed if not relevant. |
| 8 | +::: |
| 9 | + |
| 10 | +## Overview |
| 11 | + |
| 12 | +Definition / explanation of what this component is/how it works. |
| 13 | + |
| 14 | +<Tabs> |
| 15 | +<TabItem value="front" label="Front End Screenshot"> |
| 16 | + |
| 17 | + Put front end/Cassiopeia screenshot here, if applicable. Don't forget alt text! |
| 18 | + |
| 19 | +</TabItem> |
| 20 | +<TabItem value="back" label="Back End Screenshot"> |
| 21 | + |
| 22 | + Put back end/Atum screenshot here, if applicable. Don't forget alt text! |
| 23 | + |
| 24 | +</TabItem> |
| 25 | +</Tabs> |
| 26 | + |
| 27 | +## Usage |
| 28 | +### Requirements (optional) |
| 29 | +If this code only works in certain contexts or environments, add that here. For example: |
| 30 | +* PHP 8.0+ |
| 31 | +* No IE Support |
| 32 | + |
| 33 | +### Code Snippets |
| 34 | + |
| 35 | +<Tabs> |
| 36 | +<TabItem value="front" label="Front End Usage"> |
| 37 | + |
| 38 | +:::info |
| 39 | + |
| 40 | +Add notes about using this snippet in the front end, if applicable. |
| 41 | + |
| 42 | +::: |
| 43 | + |
| 44 | +```html title="Sample Front End Usage - ie, Cassiopia template" |
| 45 | +<!-- HTML Code Snippet Here --> |
| 46 | +``` |
| 47 | + |
| 48 | +</TabItem> |
| 49 | +<TabItem value="back" label="Back End Usage"> |
| 50 | + |
| 51 | +:::info |
| 52 | + |
| 53 | +Add notes about using this snippet in the back end, if applicable. |
| 54 | + |
| 55 | +::: |
| 56 | + |
| 57 | +```html title="Sample Back End Usage - ie, Atum template" |
| 58 | +<!-- HTML Code Snippet Here --> |
| 59 | +``` |
| 60 | + |
| 61 | +</TabItem> |
| 62 | +</Tabs> |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | +### Best Practices |
| 68 | +* Add best practices here. For example, "Make sure you only use button elements when it will do an action, instead of navigating to a different page." |
| 69 | +* etc |
| 70 | + |
| 71 | +### Common Mistakes |
| 72 | +* Add common errors here. |
| 73 | + |
| 74 | +## Who is affected? |
| 75 | +People using screen readers need .... |
| 76 | + |
| 77 | +People with cognitive disabilities need ... etc. |
| 78 | + |
| 79 | +Who is impacted most by the accessibility of this element? |
| 80 | + |
| 81 | +## Testing for accessibility |
| 82 | +<Tabs> |
| 83 | +<TabItem value="screenreader" label="With a screenreader"> |
| 84 | + |
| 85 | +How does someone test that this is accessible with a screenreader? |
| 86 | +1. Use the screen reader to navigate to ... |
| 87 | +2. Make sure ... |
| 88 | +3. Make sure ... |
| 89 | +4. If ... then it passes. ✅ |
| 90 | +5. If ... then it fails. ❌ |
| 91 | + |
| 92 | +</TabItem> |
| 93 | +<TabItem value="inspector" label="With web inspector"> |
| 94 | + |
| 95 | +How does someone test that this is accessible with web inspector? |
| 96 | +1. Right Click > Inspect ... on the page. |
| 97 | +2. Make sure ... |
| 98 | +3. Make sure ... |
| 99 | +4. If ... then it passes. ✅ |
| 100 | +5. If ... then it fails. ❌ |
| 101 | +6. If ... then it passes. ✅ |
| 102 | +7. If ... then it fails. ❌ |
| 103 | + |
| 104 | +</TabItem> |
| 105 | +</Tabs> |
| 106 | + |
| 107 | +## Relevant WCAG Success Criteria |
| 108 | +* Link to the WCAG Success Criteria here. For example: |
| 109 | +* [WCAG criteria 1.3.1 - Info and Relationships](https://www.w3.org/TR/WCAG22/#info-and-relationships) |
| 110 | + |
| 111 | +## Relevant ATAG Guidelines (optional) |
| 112 | +* Link to the ATAG Guideline(s) here. For example: |
| 113 | +* [Guideline A.3.2: (For the authoring tool user interface) Provide authors with enough time.](https://www.w3.org/TR/ATAG20/#gl_a32) |
| 114 | + |
0 commit comments