@aurodesignsystem-dev/auro-formkit 0.0.0-pr1451.2 → 0.0.0-pr1451.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (239) hide show
  1. package/components/checkbox/README.md +11 -27
  2. package/components/checkbox/demo/accessibility.html +49 -0
  3. package/components/checkbox/demo/accessibility.md +44 -0
  4. package/components/checkbox/demo/api.html +17 -25
  5. package/components/checkbox/demo/api.md +40 -416
  6. package/components/checkbox/demo/api.min.js +5 -4
  7. package/components/checkbox/demo/customize.html +52 -0
  8. package/components/checkbox/demo/customize.md +361 -0
  9. package/components/checkbox/demo/demo-support.js +60 -0
  10. package/components/checkbox/demo/design.html +52 -0
  11. package/components/checkbox/demo/design.md +149 -0
  12. package/components/checkbox/demo/getting-started.html +52 -0
  13. package/components/checkbox/demo/getting-started.md +261 -0
  14. package/components/checkbox/demo/index.html +17 -20
  15. package/components/checkbox/demo/index.md +144 -29
  16. package/components/checkbox/demo/index.min.js +5 -4
  17. package/components/checkbox/demo/keyboard-behavior.html +49 -0
  18. package/components/checkbox/demo/keyboard-behavior.md +0 -3
  19. package/components/checkbox/demo/layout.md +30 -0
  20. package/components/checkbox/demo/readme.html +10 -17
  21. package/components/checkbox/demo/readme.md +11 -27
  22. package/components/checkbox/demo/styles.css +974 -0
  23. package/components/checkbox/demo/voiceover.html +49 -0
  24. package/components/checkbox/demo/voiceover.md +37 -0
  25. package/components/checkbox/dist/auro-checkbox.d.ts +1 -0
  26. package/components/checkbox/dist/index.js +5 -4
  27. package/components/checkbox/dist/registered.js +5 -4
  28. package/components/combobox/README.md +8 -29
  29. package/components/combobox/demo/accessibility.html +2 -20
  30. package/components/combobox/demo/accessibility.md +1 -1
  31. package/components/combobox/demo/api.html +5 -52
  32. package/components/combobox/demo/api.md +53 -2261
  33. package/components/combobox/demo/api.min.js +15 -12
  34. package/components/combobox/demo/customize.html +53 -0
  35. package/components/combobox/demo/customize.js +24 -0
  36. package/components/combobox/demo/customize.md +1249 -0
  37. package/components/combobox/demo/customize.min.js +18132 -0
  38. package/components/combobox/demo/demo-support.js +60 -0
  39. package/components/combobox/demo/design.html +2 -43
  40. package/components/combobox/demo/design.md +4 -4
  41. package/components/combobox/demo/getting-started.html +53 -0
  42. package/components/combobox/demo/{install.js → getting-started.js} +2 -5
  43. package/components/combobox/demo/getting-started.md +397 -0
  44. package/components/combobox/demo/{install.min.js → getting-started.min.js} +14 -38
  45. package/components/combobox/demo/index.html +4 -47
  46. package/components/combobox/demo/index.md +3 -569
  47. package/components/combobox/demo/index.min.js +15 -12
  48. package/components/combobox/demo/keyboard-behavior.html +2 -20
  49. package/components/combobox/demo/keyboard-behavior.md +2 -2
  50. package/components/combobox/demo/layout.md +2 -2
  51. package/components/combobox/demo/readme.html +2 -43
  52. package/components/combobox/demo/readme.md +8 -29
  53. package/components/combobox/demo/styles.css +98 -105
  54. package/components/combobox/demo/voiceover.html +2 -20
  55. package/components/combobox/demo/voiceover.md +1 -1
  56. package/components/combobox/dist/index.js +12 -10
  57. package/components/combobox/dist/registered.js +12 -10
  58. package/components/counter/README.md +21 -51
  59. package/components/counter/demo/accessibility.html +49 -0
  60. package/components/counter/demo/accessibility.md +34 -0
  61. package/components/counter/demo/api.html +12 -20
  62. package/components/counter/demo/api.md +49 -1299
  63. package/components/counter/demo/api.min.js +6 -6
  64. package/components/counter/demo/customize.html +53 -0
  65. package/components/counter/demo/customize.md +650 -0
  66. package/components/counter/demo/demo-support.js +60 -0
  67. package/components/counter/demo/design.html +52 -0
  68. package/components/counter/demo/design.md +192 -0
  69. package/components/counter/demo/getting-started.html +54 -0
  70. package/components/counter/demo/getting-started.md +332 -0
  71. package/components/counter/demo/index.html +14 -19
  72. package/components/counter/demo/index.md +113 -47
  73. package/components/counter/demo/index.min.js +6 -6
  74. package/components/counter/demo/keyboard-behavior.html +49 -0
  75. package/components/counter/demo/keyboard-behavior.md +1 -1
  76. package/components/counter/demo/keyboardBehavior.html +7 -39
  77. package/components/counter/demo/layout.md +10 -0
  78. package/components/counter/demo/readme.html +11 -15
  79. package/components/counter/demo/readme.md +21 -51
  80. package/components/counter/demo/styles.css +974 -0
  81. package/components/counter/demo/voiceover.html +51 -0
  82. package/components/counter/demo/voiceover.md +80 -0
  83. package/components/counter/dist/index.js +6 -6
  84. package/components/counter/dist/registered.js +6 -6
  85. package/components/datepicker/README.md +10 -24
  86. package/components/datepicker/demo/accessibility.html +50 -0
  87. package/components/datepicker/demo/accessibility.md +64 -0
  88. package/components/datepicker/demo/api.md +69 -1739
  89. package/components/datepicker/demo/api.min.js +14 -14
  90. package/components/datepicker/demo/customize.html +53 -0
  91. package/components/datepicker/demo/customize.md +723 -0
  92. package/components/datepicker/demo/demo-support.js +60 -0
  93. package/components/{select/demo/layout.html → datepicker/demo/design.html} +7 -47
  94. package/components/datepicker/demo/design.md +158 -0
  95. package/components/datepicker/demo/getting-started.html +53 -0
  96. package/components/datepicker/demo/getting-started.md +237 -0
  97. package/components/datepicker/demo/index.html +14 -34
  98. package/components/datepicker/demo/index.md +160 -103
  99. package/components/datepicker/demo/index.min.js +14 -14
  100. package/components/datepicker/demo/keyboard-behavior.html +12 -33
  101. package/components/datepicker/demo/layout.md +92 -0
  102. package/components/datepicker/demo/readme.md +10 -24
  103. package/components/datepicker/demo/styles.css +974 -0
  104. package/components/{dropdown/demo/keyboardBehavior.html → datepicker/demo/voiceover.html} +14 -36
  105. package/components/datepicker/demo/voiceover.md +98 -0
  106. package/components/datepicker/dist/index.js +14 -14
  107. package/components/datepicker/dist/registered.js +14 -14
  108. package/components/dropdown/README.md +0 -25
  109. package/components/dropdown/demo/accessibility.html +49 -0
  110. package/components/dropdown/demo/accessibility.md +45 -0
  111. package/components/dropdown/demo/api.html +10 -19
  112. package/components/dropdown/demo/api.md +40 -1364
  113. package/components/dropdown/demo/api.min.js +2 -2
  114. package/components/dropdown/demo/customize.html +54 -0
  115. package/components/dropdown/demo/customize.md +780 -0
  116. package/components/dropdown/demo/demo-support.js +60 -0
  117. package/components/dropdown/demo/design.html +52 -0
  118. package/components/dropdown/demo/design.md +186 -0
  119. package/components/dropdown/demo/getting-started.html +54 -0
  120. package/components/dropdown/demo/getting-started.md +317 -0
  121. package/components/dropdown/demo/index.html +12 -20
  122. package/components/dropdown/demo/index.md +70 -225
  123. package/components/dropdown/demo/index.min.js +2 -2
  124. package/components/dropdown/demo/keyboard-behavior.html +49 -0
  125. package/components/dropdown/demo/keyboard-behavior.md +4 -8
  126. package/components/dropdown/demo/layout.md +21 -0
  127. package/components/dropdown/demo/readme.html +7 -20
  128. package/components/dropdown/demo/readme.md +0 -25
  129. package/components/dropdown/demo/styles.css +974 -0
  130. package/components/dropdown/demo/voiceover.html +51 -0
  131. package/components/dropdown/demo/voiceover.md +63 -0
  132. package/components/dropdown/dist/index.js +2 -2
  133. package/components/dropdown/dist/registered.js +2 -2
  134. package/components/form/README.md +0 -4
  135. package/components/form/demo/api.md +14 -14
  136. package/components/form/demo/api.min.js +53 -50
  137. package/components/form/demo/index.min.js +53 -50
  138. package/components/form/demo/readme.md +0 -4
  139. package/components/helptext/dist/index.js +1 -1
  140. package/components/helptext/dist/registered.js +1 -1
  141. package/components/input/README.md +17 -28
  142. package/components/input/demo/accessibility.html +38 -0
  143. package/components/input/demo/accessibility.md +69 -0
  144. package/components/input/demo/api.html +17 -22
  145. package/components/input/demo/api.js +4 -23
  146. package/components/input/demo/api.md +67 -1267
  147. package/components/input/demo/api.min.js +6 -98
  148. package/components/input/demo/customize.html +54 -0
  149. package/components/input/demo/customize.js +25 -0
  150. package/components/input/demo/customize.md +1372 -0
  151. package/components/input/demo/customize.min.js +7431 -0
  152. package/components/input/demo/demo-support.js +60 -0
  153. package/components/input/demo/design.html +39 -0
  154. package/components/input/demo/design.md +224 -0
  155. package/components/input/demo/getting-started.html +53 -0
  156. package/components/input/demo/getting-started.js +8 -0
  157. package/components/input/demo/getting-started.md +312 -0
  158. package/components/input/demo/getting-started.min.js +7369 -0
  159. package/components/input/demo/index.html +16 -22
  160. package/components/input/demo/index.js +0 -11
  161. package/components/input/demo/index.md +171 -139
  162. package/components/input/demo/index.min.js +6 -18
  163. package/components/input/demo/keyboard-behavior.html +38 -0
  164. package/components/input/demo/layout.md +77 -0
  165. package/components/input/demo/readme.md +17 -28
  166. package/components/input/demo/styles.css +974 -0
  167. package/components/input/demo/voiceover.html +38 -0
  168. package/components/input/demo/voiceover.md +70 -0
  169. package/components/input/dist/base-input.d.ts +1 -0
  170. package/components/input/dist/index.js +6 -6
  171. package/components/input/dist/registered.js +6 -6
  172. package/components/menu/README.md +1 -5
  173. package/components/menu/demo/api.md +43 -43
  174. package/components/menu/demo/api.min.js +2 -2
  175. package/components/menu/demo/index.md +1 -1
  176. package/components/menu/demo/index.min.js +2 -2
  177. package/components/menu/demo/readme.md +1 -5
  178. package/components/menu/dist/index.js +2 -2
  179. package/components/menu/dist/registered.js +2 -2
  180. package/components/radio/README.md +9 -22
  181. package/components/radio/demo/accessibility.html +51 -0
  182. package/components/radio/demo/accessibility.md +44 -0
  183. package/components/radio/demo/api.html +13 -20
  184. package/components/radio/demo/api.md +44 -589
  185. package/components/radio/demo/api.min.js +3 -3
  186. package/components/radio/demo/customize.html +53 -0
  187. package/components/radio/demo/customize.md +368 -0
  188. package/components/radio/demo/demo-support.js +60 -0
  189. package/components/radio/demo/design.html +52 -0
  190. package/components/radio/demo/design.md +143 -0
  191. package/components/radio/demo/getting-started.html +54 -0
  192. package/components/radio/demo/getting-started.md +296 -0
  193. package/components/radio/demo/index.html +16 -19
  194. package/components/radio/demo/index.md +110 -45
  195. package/components/radio/demo/index.min.js +3 -3
  196. package/components/radio/demo/keyboard-behavior.html +51 -0
  197. package/components/radio/demo/layout.md +30 -0
  198. package/components/radio/demo/readme.html +11 -17
  199. package/components/radio/demo/readme.md +9 -22
  200. package/components/radio/demo/styles.css +974 -0
  201. package/components/radio/demo/voiceover.html +51 -0
  202. package/components/radio/demo/voiceover.md +43 -0
  203. package/components/radio/dist/index.js +3 -3
  204. package/components/radio/dist/registered.js +3 -3
  205. package/components/select/README.md +7 -4
  206. package/components/select/demo/accessibility.html +5 -21
  207. package/components/select/demo/accessibility.md +1 -1
  208. package/components/select/demo/api.html +3 -48
  209. package/components/select/demo/api.md +52 -2342
  210. package/components/select/demo/customize.html +54 -0
  211. package/components/select/demo/customize.js +11 -0
  212. package/components/select/demo/customize.md +1049 -0
  213. package/components/select/demo/{api.min.js → customize.min.js} +12 -113
  214. package/components/select/demo/demo-support.js +60 -0
  215. package/components/select/demo/design.html +3 -44
  216. package/components/select/demo/design.md +2 -2
  217. package/components/select/demo/getting-started.html +5 -76
  218. package/components/select/demo/getting-started.js +20 -3
  219. package/components/select/demo/getting-started.md +97 -705
  220. package/components/select/demo/getting-started.min.js +58 -9
  221. package/components/select/demo/index.html +4 -43
  222. package/components/select/demo/index.js +5 -3
  223. package/components/select/demo/index.md +2 -2
  224. package/components/select/demo/index.min.js +14 -9
  225. package/components/select/demo/keyboard-behavior.html +6 -47
  226. package/components/select/demo/keyboard-behavior.md +5 -6
  227. package/components/select/demo/keyboardBehavior.html +4 -46
  228. package/components/select/demo/readme.html +3 -44
  229. package/components/select/demo/readme.md +7 -4
  230. package/components/select/demo/styles.css +57 -109
  231. package/components/select/demo/voiceover.html +3 -30
  232. package/components/select/dist/index.js +5 -5
  233. package/components/select/dist/registered.js +5 -5
  234. package/custom-elements.json +1676 -1673
  235. package/package.json +3 -3
  236. package/components/combobox/demo/install.html +0 -94
  237. package/components/combobox/demo/install.md +0 -98
  238. package/components/select/demo/api.js +0 -39
  239. package/components/select/demo/install.md +0 -92
@@ -21,7 +21,7 @@ The following sections are editable by making changes to the following files:
21
21
 
22
22
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/description.md) -->
23
23
  <!-- The below content is automatically added from ./docs/partials/description.md -->
24
- `<auro-checkbox>` is a [HTML custom element](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements) for the purpose of allowing users to select one or more options of a limited number of choices.
24
+ <code>&lt;auro-checkbox&gt;</code> is a <auro-hyperlink href="https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements" target="_blank">HTML custom element</auro-hyperlink> for the purpose of allowing users to select one or more options of a limited number of choices.
25
25
  <!-- AURO-GENERATED-CONTENT:END -->
26
26
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/readmeAddlInfo.md) -->
27
27
  <!-- The below content is automatically added from ./docs/partials/readmeAddlInfo.md -->
@@ -32,7 +32,7 @@ The following sections are editable by making changes to the following files:
32
32
 
33
33
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
34
34
  <!-- The below content is automatically added from ./docs/partials/useCases.md -->
35
- The `<auro-checkbox>` element should be used in situations where users may:
35
+ The <code>&lt;auro-checkbox&gt;</code> element should be used in situations where users may:
36
36
 
37
37
  * Be filling out a form
38
38
  * Need to select one or more options
@@ -84,17 +84,11 @@ To only develop a single component, use the `--filter` flag:
84
84
  <pre class="language-shell"><code class="language-shell">npx turbo dev --filter=@aurodesignsystem/auro-input</code></pre>
85
85
  <!-- AURO-GENERATED-CONTENT:END -->
86
86
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/customRegistration.md) -->
87
- <!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
88
-
89
- ## Custom Component Registration for Version Management
90
-
87
+ <!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
88
+ <auro-header level="2" id="customRegistration">Custom Component Registration for Version Management</auro-header>
91
89
  There are two key parts to every Auro component: the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes">class</a> and the custom element definition. The class defines the component’s behavior, while the custom element registers it under a specific name so it can be used in HTML.
92
90
 
93
- When you install the component as described on the `Install` page, the class is imported automatically, and the component is registered globally for you.
94
-
95
- However, if you need to load multiple versions of the same component on a single page (for example, when two projects depend on different versions), you can manually register the class under a custom element name to avoid conflicts.
96
-
97
- You can do this by importing only the component class and using the `register(name)` method with a unique name:
91
+ You can do this by importing only the component class and using the <code>register(name)</code> method with a unique name:
98
92
 
99
93
  <pre class="language-js"><code class="language-js">// Import the class only
100
94
  import { AuroCheckbox, AuroCheckboxGroup } from '@aurodesignsystem/auro-formkit/auro-checkbox/class';
@@ -103,26 +97,16 @@ import { AuroCheckbox, AuroCheckboxGroup } from '@aurodesignsystem/auro-formkit/
103
97
  AuroCheckbox.register('custom-checkbox');
104
98
  AuroCheckboxGroup.register('custom-checkbox-group');</code></pre>
105
99
 
106
- This will create a new custom element `<custom-checkbox>` and `<custom-checkbox-group>` that behaves exactly like `<auro-checkbox>` and `<auro-checkbox-group>`, allowing both to coexist on the same page without interfering with each other.
107
-
108
- <div class="exampleWrapper exampleWrapper--flex">
109
- <custom-checkbox-group>
110
- <span slot="legend">Form label goes here</span>
111
- <custom-checkbox value="value1" name="custom" id="checkbox-custom1">Custom checkbox option</custom-checkbox>
112
- <custom-checkbox value="value2" name="custom" id="checkbox-custom2" checked>Custom checkbox option</custom-checkbox>
113
- <custom-checkbox value="value3" name="custom" id="checkbox-custom3">Custom checkbox option</custom-checkbox>
114
- <custom-checkbox value="value4" name="custom" id="checkbox-custom4">Custom checkbox option</custom-checkbox>
115
- </custom-checkbox-group>
116
- </div>
117
- <auro-accordion alignRight>
118
- <span slot="trigger">See code</span>
119
-
100
+ This will create a new custom element <code>&gt;custom-checkbox&lt;</code> and <code>&gt;custom-checkbox-group&lt;</code> that behaves exactly like <code>&gt;auro-checkbox&lt;</code> and <code>&lt;auro-checkbox-group&gt;</code>, allowing both to coexist on the same page without interfering with each other.
101
+
102
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/custom.html) -->
103
+ <!-- The below code snippet is automatically added from ./../apiExamples/custom.html -->
120
104
  <pre class="language-html"><code class="language-html">&lt;custom-checkbox-group&gt;
121
105
  &lt;span slot="legend"&gt;Form label goes here&lt;/span&gt;
122
106
  &lt;custom-checkbox value="value1" name="custom" id="checkbox-custom1"&gt;Custom checkbox option&lt;/custom-checkbox&gt;
123
107
  &lt;custom-checkbox value="value2" name="custom" id="checkbox-custom2" checked&gt;Custom checkbox option&lt;/custom-checkbox&gt;
124
108
  &lt;custom-checkbox value="value3" name="custom" id="checkbox-custom3"&gt;Custom checkbox option&lt;/custom-checkbox&gt;
125
109
  &lt;custom-checkbox value="value4" name="custom" id="checkbox-custom4"&gt;Custom checkbox option&lt;/custom-checkbox&gt;
126
- &lt;/custom-checkbox-group&gt;</code></pre>
127
- </auro-accordion>
110
+ &lt;/custom-checkbox-group&gt;</code></pre>
111
+ <!-- AURO-GENERATED-CONTENT:END -->
128
112
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -0,0 +1,49 @@
1
+ <!--
2
+ Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
3
+ See LICENSE in the project root for license information.
4
+
5
+ HTML in this document is standardized and NOT to be edited.
6
+ All demo code should be added/edited in ./demo/accessibility.md
7
+
8
+ With the exception of adding custom elements if needed for the demo.
9
+
10
+ ----------------------- DO NOT EDIT -----------------------------
11
+
12
+ -->
13
+
14
+ <!DOCTYPE html>
15
+ <html lang="en">
16
+ <head>
17
+ <meta charset="UTF-8" />
18
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
19
+ <title>Auro Web Component Demo | auro-checkbox | Accessibility</title>
20
+
21
+ <!-- highlight.js Stylesheet -->
22
+ <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/styles/github.min.css"/>
23
+
24
+ <!-- Legacy reference is still needed to support auro-checkbox's use of legacy token values at this time -->
25
+ <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/legacy/auro-classic/CSSCustomProperties.css"/>
26
+
27
+ <!-- Design Token Alaska Theme -->
28
+ <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/themes/alaska/CSSCustomProperties--alaska.min.css"/>
29
+
30
+ <!-- Webcore Stylesheet Alaska Theme -->
31
+ <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css" />
32
+
33
+ <!-- Demo Specific Styles -->
34
+ <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css" />
35
+ <link rel="stylesheet" type="text/css" href="./styles.css" />
36
+ </head>
37
+ <body class="auro-markdown">
38
+ <main></main>
39
+
40
+ <script type="module">
41
+ import { renderPage } from './demo-support.js';
42
+ await renderPage('./accessibility.md');
43
+ </script>
44
+
45
+ <!-- If additional elements are needed for the demo, add them here. -->
46
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-header@latest/+esm" type="module"></script>
47
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-hyperlink@latest/+esm" type="module"></script>
48
+ </body>
49
+ </html>
@@ -0,0 +1,44 @@
1
+ <auro-header level="1" id="overview">Checkbox - Accessibility</auro-header>
2
+ <div class="contentWrapper">
3
+ <div class="mainContent">
4
+ <div class="scrollWrapper">
5
+ The `auro-checkbox` component follows native HTML checkbox semantics. This page documents the ARIA attributes, screen reader behavior, and other accessibility features built into the component.
6
+
7
+ For keyboard interaction details, see the <a href="./keyboard-behavior.html">Keyboard Behavior</a> page.
8
+
9
+ <auro-header level="2" id="ariaRolesAndAttributes">ARIA Roles and Attributes</auro-header>
10
+ <auro-header level="3" id="checkboxGroup">Checkbox Group</auro-header>
11
+ The `<auro-checkbox-group>` element uses a `<fieldset>` with a `<legend>` internally, providing native grouping semantics:
12
+
13
+ | Attribute | Value | Description |
14
+ |---|---|---|
15
+ | `role` | `group` (implicit via `fieldset`) | Groups related checkboxes together. |
16
+ | `aria-invalid` | `true` / `false` | Reflects whether the group is currently in an invalid state. |
17
+
18
+ <auro-header level="3" id="checkboxElement">Checkbox</auro-header>
19
+ Each `<auro-checkbox>` renders a native `<input type="checkbox">` inside its shadow DOM:
20
+
21
+ | Attribute | Value | Description |
22
+ |---|---|---|
23
+ | `type` | `checkbox` | Native checkbox input type. |
24
+ | `aria-checked` | `true` / `false` | Reflects the checked state of the checkbox. |
25
+ | `aria-disabled` | `true` / `false` | Indicates whether the checkbox is disabled. |
26
+
27
+ <auro-header level="2" id="screenReaderAnnouncements">Screen Reader Announcements</auro-header>
28
+ - **Focus** — When focus moves to a checkbox, the screen reader announces the checkbox label, its checked/unchecked state, and role ("checkbox").
29
+ - **State change** — Toggling the checkbox announces the new state ("checked" or "unchecked").
30
+ - **Group context** — The legend text provides group context when navigating between groups.
31
+ - **Error** — When validation fails, the error message is announced to screen reader users.
32
+
33
+ <auro-header level="2" id="accessibleLabels">Accessible Labels</auro-header>
34
+ - The `legend` slot content provides the accessible group label via the native `<legend>` element.
35
+ - Each checkbox's default slot content provides its individual accessible label.
36
+ - A label is required for each checkbox. Without it, assistive technology users will not have context for what the checkbox controls.
37
+ - The `(optional)` label is automatically appended when the `required` attribute is not set.
38
+
39
+ <auro-header level="2" id="formParticipation">Form Participation</auro-header>
40
+ The `<auro-checkbox-group>` participates in form validation and submission. When used inside a `<form>` or `<auro-form>`, checked checkbox values are included in the form data.
41
+
42
+ </div>
43
+ </div>
44
+ </div>
@@ -3,7 +3,7 @@
3
3
  See LICENSE in the project root for license information.
4
4
 
5
5
  HTML in this document is standardized and NOT to be edited.
6
- All demo code should be added/edited in ./demo/apiExamples.md
6
+ All demo code should be added/edited in ./demo/api.md
7
7
 
8
8
  With the exception of adding custom elements if needed for the demo.
9
9
 
@@ -18,44 +18,36 @@
18
18
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
19
19
  <title>Auro Web Component Demo | auro-checkbox</title>
20
20
 
21
- <!-- Prism.js Stylesheet -->
22
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"/>
21
+ <!-- highlight.js Stylesheet -->
22
+ <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/styles/github.min.css"/>
23
23
 
24
24
  <!-- Legacy reference is still needed to support auro-checkbox's use of legacy token values at this time -->
25
25
  <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/legacy/auro-classic/CSSCustomProperties.css"/>
26
26
 
27
27
  <!-- Design Token Alaska Theme -->
28
28
  <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/themes/alaska/CSSCustomProperties--alaska.min.css"/>
29
-
29
+
30
30
  <!-- Webcore Stylesheet Alaska Theme -->
31
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem-dev/webcorestylesheets@0.0.0-pr243.4/dist/bundled/themes/alaska.global.min.css" />
32
-
31
+ <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css" />
32
+
33
33
  <!-- Demo Specific Styles -->
34
34
  <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css" />
35
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/elementDemoStyles.css" />
36
- </head>
35
+ <link rel="stylesheet" type="text/css" href="./styles.css" />
36
+ </head>
37
37
  <body class="auro-markdown">
38
38
  <main></main>
39
39
 
40
- <script type="module">
41
- import 'https://cdn.jsdelivr.net/npm/marked@latest/marked.min.js';
42
- import 'https://cdn.jsdelivr.net/npm/prismjs@latest/prism.js';
43
- fetch('./api.md')
44
- .then((response) => response.text())
45
- .then((text) => {
46
- const rawHtml = marked.parse(text);
47
- document.querySelector('main').innerHTML = rawHtml;
48
- Prism.highlightAll();
49
- });
50
- </script>
51
-
52
- <script type="module" data-demo-script="true">
53
- import { initExamples } from "./api.min.js"
54
- initExamples();
55
- </script>
56
-
57
40
  <!-- If additional elements are needed for the demo, add them here. -->
58
41
  <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/+esm" type="module"></script>
59
42
  <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-button@latest/+esm" type="module"></script>
43
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-header@latest/+esm" type="module"></script>
44
+
45
+ <script type="module">
46
+ import { renderPage } from './demo-support.js';
47
+ await renderPage('./api.md');
48
+ import { initExamples } from "./api.min.js";
49
+ initExamples();
50
+ </script>
51
+ <script src="./api.min.js" data-demo-script="true" type="module"></script>
60
52
  </body>
61
53
  </html>