@aurodesignsystem-dev/auro-formkit 0.0.0-pr1457.0 → 0.0.0-pr1457.2
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.
- package/components/checkbox/README.md +2 -2
- package/components/checkbox/demo/accessibility.html +1 -1
- package/components/checkbox/demo/api.html +2 -1
- package/components/checkbox/demo/customize.html +1 -1
- package/components/checkbox/demo/demo-support.js +1 -60
- package/components/checkbox/demo/demo-support.min.js +60 -0
- package/components/checkbox/demo/design.html +2 -1
- package/components/checkbox/demo/getting-started.html +1 -1
- package/components/checkbox/demo/getting-started.md +156 -2
- package/components/checkbox/demo/index.html +1 -1
- package/components/checkbox/demo/index.min.js +3 -2
- package/components/checkbox/demo/install.html +49 -0
- package/components/checkbox/demo/install.md +2 -2
- package/components/checkbox/demo/keyboard-behavior.html +1 -1
- package/components/checkbox/demo/pages.json +1 -0
- package/components/checkbox/demo/readme.html +2 -1
- package/components/checkbox/demo/readme.md +2 -2
- package/components/checkbox/demo/styles.min.css +1 -1
- package/components/checkbox/demo/voiceover.html +1 -1
- package/components/checkbox/dist/auro-checkbox.d.ts +1 -0
- package/components/checkbox/dist/index.js +3 -2
- package/components/checkbox/dist/registered.js +3 -2
- package/components/combobox/README.md +2 -2
- package/components/combobox/demo/accessibility.html +1 -3
- package/components/combobox/demo/api.html +2 -3
- package/components/combobox/demo/customize.html +1 -1
- package/components/combobox/demo/demo-support.js +1 -60
- package/components/combobox/demo/demo-support.min.js +60 -0
- package/components/combobox/demo/design.html +2 -3
- package/components/combobox/demo/getting-started.html +1 -1
- package/components/combobox/demo/getting-started.md +2 -2
- package/components/combobox/demo/index.html +1 -1
- package/components/combobox/demo/install.html +50 -0
- package/components/combobox/demo/install.md +2 -2
- package/components/combobox/demo/keyboard-behavior.html +1 -3
- package/components/combobox/demo/pages.json +1 -0
- package/components/combobox/demo/readme.html +2 -3
- package/components/combobox/demo/readme.md +2 -2
- package/components/combobox/demo/registered.min.js +5 -4
- package/components/combobox/demo/styles.min.css +1 -1
- package/components/combobox/demo/voiceover.html +1 -3
- package/components/combobox/dist/index.js +5 -4
- package/components/combobox/dist/registered.js +5 -4
- package/components/counter/README.md +21 -47
- package/components/counter/demo/accessibility.html +49 -0
- package/components/counter/demo/accessibility.md +34 -0
- package/components/counter/demo/api.html +13 -21
- package/components/counter/demo/api.md +49 -1299
- package/components/counter/demo/api.min.js +1 -8390
- package/components/counter/demo/auro-counter-group.min.js +8392 -0
- package/components/counter/demo/customize.html +53 -0
- package/components/counter/demo/customize.md +650 -0
- package/components/counter/demo/demo-support.js +1 -0
- package/components/counter/demo/demo-support.min.js +55792 -0
- package/components/counter/demo/design.html +52 -0
- package/components/counter/demo/design.md +192 -0
- package/components/counter/demo/getting-started.html +54 -0
- package/components/counter/demo/getting-started.md +482 -0
- package/components/counter/demo/index.html +14 -20
- package/components/counter/demo/index.md +117 -51
- package/components/counter/demo/index.min.js +1 -8390
- package/components/{dropdown/demo/keyboardBehavior.html → counter/demo/keyboard-behavior.html} +9 -42
- package/components/counter/demo/keyboardBehavior.html +7 -40
- package/components/counter/demo/pages.json +1 -0
- package/components/counter/demo/readme.html +12 -16
- package/components/counter/demo/readme.md +21 -47
- package/components/counter/demo/styles.min.css +1 -0
- package/components/counter/demo/styles.scss +1 -0
- package/components/counter/demo/voiceover.html +51 -0
- package/components/counter/demo/voiceover.md +80 -0
- package/components/counter/dist/index.js +2 -2
- package/components/counter/dist/registered.js +2 -2
- package/components/datepicker/README.md +2 -2
- package/components/datepicker/demo/accessibility.html +2 -3
- package/components/datepicker/demo/api.html +2 -2
- package/components/datepicker/demo/auro-datepicker.min.js +5 -4
- package/components/datepicker/demo/customize.html +1 -1
- package/components/datepicker/demo/demo-support.js +1 -60
- package/components/datepicker/demo/demo-support.min.js +60 -0
- package/components/datepicker/demo/design.html +3 -4
- package/components/datepicker/demo/getting-started.html +1 -1
- package/components/datepicker/demo/getting-started.md +2 -2
- package/components/datepicker/demo/index.html +1 -1
- package/components/datepicker/demo/keyboard-behavior.html +2 -4
- package/components/datepicker/demo/pages.json +1 -0
- package/components/datepicker/demo/readme.html +2 -2
- package/components/datepicker/demo/readme.md +2 -2
- package/components/datepicker/demo/styles.min.css +1 -1
- package/components/datepicker/demo/voiceover.html +2 -4
- package/components/datepicker/dist/index.js +5 -4
- package/components/datepicker/dist/registered.js +5 -4
- package/components/dropdown/README.md +0 -21
- package/components/dropdown/demo/accessibility.html +49 -0
- package/components/dropdown/demo/accessibility.md +45 -0
- package/components/dropdown/demo/api.html +11 -20
- package/components/dropdown/demo/api.md +40 -1364
- package/components/dropdown/demo/api.min.js +2 -5098
- package/components/dropdown/demo/auro-dropdown.min.js +5099 -0
- package/components/dropdown/demo/customize.html +54 -0
- package/components/dropdown/demo/customize.md +780 -0
- package/components/dropdown/demo/demo-support.js +1 -0
- package/components/dropdown/demo/demo-support.min.js +55792 -0
- package/components/dropdown/demo/design.html +52 -0
- package/components/dropdown/demo/design.md +186 -0
- package/components/dropdown/demo/getting-started.html +54 -0
- package/components/dropdown/demo/getting-started.md +463 -0
- package/components/dropdown/demo/index.html +12 -21
- package/components/dropdown/demo/index.md +78 -233
- package/components/dropdown/demo/index.min.js +1 -5097
- package/components/dropdown/demo/keyboard-behavior.html +48 -0
- package/components/dropdown/demo/pages.json +1 -0
- package/components/dropdown/demo/readme.html +8 -21
- package/components/dropdown/demo/readme.md +0 -21
- package/components/dropdown/demo/styles.min.css +1 -0
- package/components/dropdown/demo/styles.scss +1 -0
- package/components/dropdown/demo/voiceover.html +51 -0
- package/components/dropdown/demo/voiceover.md +63 -0
- package/components/dropdown/dist/index.js +1 -1
- package/components/dropdown/dist/registered.js +1 -1
- package/components/form/README.md +9 -9
- package/components/form/demo/accessibility.html +51 -0
- package/components/form/demo/accessibility.md +23 -0
- package/components/form/demo/api.html +12 -15
- package/components/form/demo/api.md +14 -290
- package/components/form/demo/api.min.js +2 -71921
- package/components/form/demo/auro-form.min.js +718 -0
- package/components/form/demo/autocomplete.html +2 -2
- package/components/form/demo/customize.html +54 -0
- package/components/form/demo/customize.md +246 -0
- package/components/form/demo/demo-support.js +1 -0
- package/components/form/demo/demo-support.min.js +55792 -0
- package/components/form/demo/getting-started.html +54 -0
- package/components/form/demo/getting-started.md +434 -0
- package/components/form/demo/index.html +13 -15
- package/components/form/demo/index.md +67 -97
- package/components/form/demo/index.min.js +2 -71921
- package/components/form/demo/keyboard-behavior.html +51 -0
- package/components/form/demo/pages.json +1 -0
- package/components/form/demo/readme.html +13 -18
- package/components/form/demo/readme.md +9 -9
- package/components/form/demo/registerDemoDeps.min.js +71212 -0
- package/components/form/demo/styles.min.css +1 -0
- package/components/form/demo/styles.scss +1 -0
- package/components/form/demo/voiceover.html +51 -0
- package/components/form/demo/voiceover.md +36 -0
- package/components/form/demo/working.html +3 -2
- package/components/input/README.md +2 -2
- package/components/input/demo/accessibility.html +1 -1
- package/components/input/demo/api.html +1 -1
- package/components/input/demo/auro-input.min.js +3 -2
- package/components/input/demo/customize.html +1 -1
- package/components/input/demo/demo-support.js +1 -60
- package/components/input/demo/demo-support.min.js +60 -0
- package/components/input/demo/design.html +2 -1
- package/components/input/demo/getting-started.html +1 -1
- package/components/input/demo/getting-started.md +2 -2
- package/components/input/demo/index.html +1 -1
- package/components/input/demo/keyboard-behavior.html +2 -1
- package/components/input/demo/pages.json +1 -0
- package/components/input/demo/readme.html +2 -2
- package/components/input/demo/readme.md +2 -2
- package/components/input/demo/styles.min.css +1 -1
- package/components/input/demo/voiceover.html +1 -1
- package/components/input/dist/base-input.d.ts +1 -0
- package/components/input/dist/index.js +3 -2
- package/components/input/dist/registered.js +3 -2
- package/components/menu/README.md +8 -26
- package/components/menu/demo/accessibility.html +53 -0
- package/components/menu/demo/accessibility.md +34 -0
- package/components/menu/demo/api.html +12 -18
- package/components/menu/demo/api.md +43 -1102
- package/components/menu/demo/api.min.js +2 -2288
- package/components/menu/demo/auro-menu.min.js +2289 -0
- package/components/menu/demo/customize.html +54 -0
- package/components/menu/demo/customize.md +637 -0
- package/components/menu/demo/demo-support.js +1 -0
- package/components/menu/demo/demo-support.min.js +55792 -0
- package/components/menu/demo/design.html +53 -0
- package/components/menu/demo/design.md +81 -0
- package/components/menu/demo/getting-started.html +54 -0
- package/components/menu/demo/getting-started.md +322 -0
- package/components/menu/demo/index.html +14 -20
- package/components/menu/demo/index.md +26 -63
- package/components/menu/demo/index.min.js +1 -2287
- package/components/menu/demo/keyboard-behavior.html +53 -0
- package/components/menu/demo/pages.json +1 -0
- package/components/menu/demo/readme.html +12 -16
- package/components/menu/demo/readme.md +8 -26
- package/components/menu/demo/styles.min.css +1 -0
- package/components/menu/demo/styles.scss +1 -0
- package/components/menu/demo/voiceover.html +53 -0
- package/components/menu/demo/voiceover.md +33 -0
- package/components/radio/demo/accessibility.html +3 -3
- package/components/radio/demo/api.html +3 -3
- package/components/radio/demo/api.md +44 -44
- package/components/radio/demo/api.min.js +2 -2168
- package/components/radio/demo/customize.html +3 -3
- package/components/radio/demo/demo-support.js +1 -60
- package/components/radio/demo/demo-support.min.js +55792 -0
- package/components/radio/demo/design.html +3 -3
- package/components/radio/demo/getting-started.html +3 -3
- package/components/radio/demo/getting-started.md +154 -0
- package/components/radio/demo/index.html +2 -3
- package/components/radio/demo/index.min.js +16 -2
- package/components/radio/demo/keyboard-behavior.html +3 -3
- package/components/radio/demo/pages.json +1 -0
- package/components/radio/demo/readme.html +3 -3
- package/components/radio/demo/styles.min.css +1 -0
- package/components/radio/demo/styles.scss +1 -0
- package/components/radio/demo/voiceover.html +3 -3
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/README.md +2 -2
- package/components/select/demo/accessibility.html +1 -1
- package/components/select/demo/api.html +2 -1
- package/components/select/demo/customize.html +1 -1
- package/components/select/demo/demo-support.js +1 -60
- package/components/select/demo/demo-support.min.js +60 -0
- package/components/select/demo/design.html +2 -1
- package/components/select/demo/getting-started.html +1 -1
- package/components/select/demo/getting-started.md +2 -2
- package/components/select/demo/index.html +1 -1
- package/components/select/demo/install.html +50 -0
- package/components/select/demo/install.md +2 -2
- package/components/select/demo/keyboard-behavior.html +1 -1
- package/components/select/demo/keyboardBehavior.html +1 -1
- package/components/select/demo/layout.html +2 -1
- package/components/select/demo/pages.json +1 -0
- package/components/select/demo/readme.html +2 -1
- package/components/select/demo/readme.md +2 -2
- package/components/select/demo/registered.min.js +2 -2
- package/components/select/demo/styles.min.css +1 -1
- package/components/select/demo/voiceover.html +1 -1
- package/components/select/dist/index.js +2 -2
- package/components/select/dist/registered.js +2 -2
- package/custom-elements.json +5 -2
- package/package.json +2 -2
- package/components/counter/demo/keyboard-behavior.md +0 -127
- package/components/dropdown/demo/keyboard-behavior.md +0 -72
- package/components/form/demo/keyboard-behavior.md +0 -38
- package/components/menu/demo/keyboard-behavior.md +0 -18
- package/components/radio/demo/keyboard-behavior.md +0 -72
- package/components/radio/demo/layout.md +0 -30
- package/components/radio/demo/styles.css +0 -974
|
@@ -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
|
-
The
|
|
24
|
+
The <code>auro-counter</code> component is a ui element that enables a way to increment or decrement a single digit value. Common use case is inside the <code>auro-counter-group</code> to facilitate a collection of counters to add passenger types to a flight.
|
|
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 -->
|
|
@@ -84,11 +84,9 @@ 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
|
-
|
|
90
|
-
|
|
91
|
-
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.
|
|
87
|
+
<!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
|
|
88
|
+
<auro-header level="4">Custom Component Registration for Version Management</auro-header>
|
|
89
|
+
There are two key parts to every Auro component: the <auro-hyperlink href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes">class</auro-hyperlink> 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
91
|
You can do this by importing only the component class and using the `register(name)` method with a unique name:
|
|
94
92
|
|
|
@@ -99,45 +97,21 @@ import { AuroCounter, AuroCounterGroup } from '@aurodesignsystem/auro-formkit/au
|
|
|
99
97
|
AuroCounter.register('custom-counter');
|
|
100
98
|
AuroCounterGroup.register('custom-counter-group');</code></pre>
|
|
101
99
|
|
|
102
|
-
This will create a new custom element
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
<
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
<span slot="trigger">See code</span>
|
|
120
|
-
|
|
121
|
-
<pre class="language-html"><code class="language-html"> <custom-counter-group>
|
|
122
|
-
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
123
|
-
<div slot="label">Passengers</div>
|
|
124
|
-
<custom-counter>
|
|
125
|
-
Adults
|
|
126
|
-
<span slot="description">18 years or older</span>
|
|
127
|
-
</custom-counter>
|
|
128
|
-
<custom-counter>
|
|
129
|
-
Children
|
|
130
|
-
<span slot="description">2-17 years</span>
|
|
131
|
-
</custom-counter>
|
|
132
|
-
</custom-counter-group>
|
|
133
|
-
|
|
134
|
-
```html
|
|
135
|
-
<custom-checkbox-group>
|
|
136
|
-
<span slot="legend">Form label goes here</span>
|
|
137
|
-
<custom-checkbox value="value1" name="custom" id="checkbox-custom1">Custom checkbox option</custom-checkbox>
|
|
138
|
-
<custom-checkbox value="value2" name="custom" id="checkbox-custom2" checked>Custom checkbox option</custom-checkbox>
|
|
139
|
-
<custom-checkbox value="value3" name="custom" id="checkbox-custom3">Custom checkbox option</custom-checkbox>
|
|
140
|
-
<custom-checkbox value="value4" name="custom" id="checkbox-custom4">Custom checkbox option</custom-checkbox>
|
|
141
|
-
</custom-checkbox-group></code></pre>
|
|
142
|
-
</auro-accordion>
|
|
100
|
+
This will create a new custom element <code><custom-counter></code> and <code><custom-counter-group></code> that behaves exactly like <code><auro-counter></code> and <code><auro-counter-group></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 -->
|
|
104
|
+
<pre class="language-html"><code class="language-html"><custom-counter-group>
|
|
105
|
+
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
106
|
+
<div slot="label">Passengers</div>
|
|
107
|
+
<custom-counter>
|
|
108
|
+
Adults
|
|
109
|
+
<span slot="description">18 years or older</span>
|
|
110
|
+
</custom-counter>
|
|
111
|
+
<custom-counter>
|
|
112
|
+
Children
|
|
113
|
+
<span slot="description">2-17 years</span>
|
|
114
|
+
</custom-counter>
|
|
115
|
+
</custom-counter-group></code></pre>
|
|
116
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
143
117
|
<!-- 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-counter | 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-counter'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="./styles.min.css" />
|
|
35
|
+
</head>
|
|
36
|
+
<body class="auro-markdown">
|
|
37
|
+
<main></main>
|
|
38
|
+
|
|
39
|
+
<script type="module">
|
|
40
|
+
import { renderPage } from './demo-support.min.js';
|
|
41
|
+
await renderPage('./accessibility.md');
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
<!-- If additional elements are needed for the demo, add them here. -->
|
|
45
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-header@latest/+esm" type="module"></script>
|
|
46
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-hyperlink@latest/+esm" type="module"></script>
|
|
47
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest/+esm" type="module"></script>
|
|
48
|
+
</body>
|
|
49
|
+
</html>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<auro-header level="1" id="overview">Counter - Accessibility</auro-header>
|
|
2
|
+
<div class="contentWrapper">
|
|
3
|
+
<div class="mainContent">
|
|
4
|
+
<div class="scrollWrapper">
|
|
5
|
+
<section>
|
|
6
|
+
<auro-header level="2" id="ariaRoles">ARIA Roles and Attributes</auro-header>
|
|
7
|
+
<p>The <code>auro-counter</code> component uses the <code>spinbutton</code> role to convey its purpose to assistive technologies. Key ARIA attributes include:</p>
|
|
8
|
+
<ul>
|
|
9
|
+
<li><code>role="spinbutton"</code> — Identifies the element as a numeric spinner control.</li>
|
|
10
|
+
<li><code>aria-valuenow</code> — Reflects the current counter value.</li>
|
|
11
|
+
<li><code>aria-valuemin</code> — Reflects the minimum allowed value.</li>
|
|
12
|
+
<li><code>aria-valuemax</code> — Reflects the maximum allowed value.</li>
|
|
13
|
+
<li><code>aria-label</code> — Derived from the default slot content (counter label).</li>
|
|
14
|
+
</ul>
|
|
15
|
+
</section>
|
|
16
|
+
<section>
|
|
17
|
+
<auro-header level="2" id="accessibleLabels">Accessible Labels</auro-header>
|
|
18
|
+
<p>The increment and decrement buttons include accessible labels. Custom labels can be provided using the <code>ariaLabel.minus</code> and <code>ariaLabel.plus</code> slots to override the default button descriptions.</p>
|
|
19
|
+
</section>
|
|
20
|
+
<section>
|
|
21
|
+
<auro-header level="2" id="screenReader">Screen Reader Announcements</auro-header>
|
|
22
|
+
<p>When a user interacts with the counter, the updated value is announced via the <code>aria-valuenow</code> attribute. Screen readers will announce the counter label and current value when the element receives focus.</p>
|
|
23
|
+
</section>
|
|
24
|
+
<section>
|
|
25
|
+
<auro-header level="2" id="disabledState">Disabled State</auro-header>
|
|
26
|
+
<p>When a counter is disabled, the <code>aria-disabled</code> attribute is set, and the increment/decrement buttons become inoperable. Screen readers will announce the disabled state to the user.</p>
|
|
27
|
+
</section>
|
|
28
|
+
<section>
|
|
29
|
+
<auro-header level="2" id="dropdownA11y">Dropdown Accessibility</auro-header>
|
|
30
|
+
<p>When used as a dropdown (<code>isDropdown</code>), the counter group inherits dropdown accessibility patterns. The <code>ariaLabel.bib.close</code> slot provides an accessible label for the close button in fullscreen mode.</p>
|
|
31
|
+
</section>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
@@ -18,45 +18,37 @@
|
|
|
18
18
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
19
19
|
<title>Auro Web Component Demo | auro-counter</title>
|
|
20
20
|
|
|
21
|
-
<!--
|
|
22
|
-
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/
|
|
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-counter'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
31
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css" />
|
|
32
|
-
|
|
32
|
+
|
|
33
33
|
<!-- Demo Specific Styles -->
|
|
34
|
-
<link rel="stylesheet" type="text/css" href="
|
|
35
|
-
|
|
36
|
-
</head>
|
|
34
|
+
<link rel="stylesheet" type="text/css" href="./styles.min.css" />
|
|
35
|
+
</head>
|
|
37
36
|
<body class="auro-markdown">
|
|
38
37
|
<main></main>
|
|
39
38
|
|
|
40
39
|
<script type="module">
|
|
41
|
-
import '
|
|
42
|
-
import '
|
|
43
|
-
|
|
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
|
-
<script type="module">
|
|
52
|
-
import { initExamples } from "./api.min.js";
|
|
53
|
-
|
|
40
|
+
import { renderPage } from './demo-support.min.js';
|
|
41
|
+
import { initExamples } from './api.min.js';
|
|
42
|
+
await renderPage('./api.md');
|
|
54
43
|
initExamples();
|
|
55
44
|
</script>
|
|
56
|
-
|
|
45
|
+
|
|
57
46
|
<!-- If additional elements are needed for the demo, add them here. -->
|
|
58
47
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/+esm" type="module"></script>
|
|
48
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-header@latest/+esm" type="module"></script>
|
|
49
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-hyperlink@latest/+esm" type="module"></script>
|
|
59
50
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-button@latest/+esm" type="module"></script>
|
|
51
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest/+esm" type="module"></script>
|
|
60
52
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-dialog@latest/+esm" type="module"></script>
|
|
61
53
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-drawer@latest/+esm" type="module"></script>
|
|
62
54
|
</body>
|