@aurodesignsystem-dev/auro-formkit 0.0.0-pr1451.2 → 0.0.0-pr1451.21
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 +11 -27
- package/components/checkbox/demo/accessibility.html +49 -0
- package/components/checkbox/demo/accessibility.md +44 -0
- package/components/checkbox/demo/api.html +17 -25
- package/components/checkbox/demo/api.md +40 -416
- package/components/checkbox/demo/api.min.js +5 -4
- package/components/checkbox/demo/customize.html +52 -0
- package/components/checkbox/demo/customize.md +361 -0
- package/components/checkbox/demo/demo-support.js +60 -0
- package/components/checkbox/demo/design.html +52 -0
- package/components/checkbox/demo/design.md +149 -0
- package/components/checkbox/demo/getting-started.html +52 -0
- package/components/checkbox/demo/getting-started.md +261 -0
- package/components/checkbox/demo/index.html +17 -20
- package/components/checkbox/demo/index.md +144 -29
- package/components/checkbox/demo/index.min.js +5 -4
- package/components/checkbox/demo/keyboard-behavior.html +49 -0
- package/components/checkbox/demo/keyboard-behavior.md +0 -3
- package/components/checkbox/demo/layout.md +30 -0
- package/components/checkbox/demo/readme.html +10 -17
- package/components/checkbox/demo/readme.md +11 -27
- package/components/checkbox/demo/styles.css +974 -0
- package/components/checkbox/demo/voiceover.html +49 -0
- package/components/checkbox/demo/voiceover.md +37 -0
- package/components/checkbox/dist/auro-checkbox.d.ts +1 -0
- package/components/checkbox/dist/index.js +5 -4
- package/components/checkbox/dist/registered.js +5 -4
- package/components/combobox/README.md +8 -29
- package/components/combobox/demo/accessibility.html +2 -20
- package/components/combobox/demo/accessibility.md +1 -1
- package/components/combobox/demo/api.html +5 -52
- package/components/combobox/demo/api.md +53 -2261
- package/components/combobox/demo/api.min.js +15 -12
- package/components/combobox/demo/customize.html +53 -0
- package/components/combobox/demo/customize.js +24 -0
- package/components/combobox/demo/customize.md +1249 -0
- package/components/combobox/demo/customize.min.js +18132 -0
- package/components/combobox/demo/demo-support.js +60 -0
- package/components/combobox/demo/design.html +2 -43
- package/components/combobox/demo/design.md +4 -4
- package/components/combobox/demo/getting-started.html +53 -0
- package/components/combobox/demo/{install.js → getting-started.js} +2 -5
- package/components/combobox/demo/getting-started.md +397 -0
- package/components/combobox/demo/{install.min.js → getting-started.min.js} +14 -38
- package/components/combobox/demo/index.html +4 -47
- package/components/combobox/demo/index.md +3 -569
- package/components/combobox/demo/index.min.js +15 -12
- package/components/combobox/demo/keyboard-behavior.html +2 -20
- package/components/combobox/demo/keyboard-behavior.md +2 -2
- package/components/combobox/demo/layout.md +2 -2
- package/components/combobox/demo/readme.html +2 -43
- package/components/combobox/demo/readme.md +8 -29
- package/components/combobox/demo/styles.css +98 -105
- package/components/combobox/demo/voiceover.html +2 -20
- package/components/combobox/demo/voiceover.md +1 -1
- package/components/combobox/dist/index.js +12 -10
- package/components/combobox/dist/registered.js +12 -10
- package/components/counter/README.md +21 -51
- package/components/counter/demo/accessibility.html +49 -0
- package/components/counter/demo/accessibility.md +34 -0
- package/components/counter/demo/api.html +12 -20
- package/components/counter/demo/api.md +49 -1299
- package/components/counter/demo/api.min.js +6 -6
- package/components/counter/demo/customize.html +53 -0
- package/components/counter/demo/customize.md +650 -0
- package/components/counter/demo/demo-support.js +60 -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 +332 -0
- package/components/counter/demo/index.html +14 -19
- package/components/counter/demo/index.md +113 -47
- package/components/counter/demo/index.min.js +6 -6
- package/components/counter/demo/keyboard-behavior.html +49 -0
- package/components/counter/demo/keyboard-behavior.md +1 -1
- package/components/counter/demo/keyboardBehavior.html +7 -39
- package/components/counter/demo/layout.md +10 -0
- package/components/counter/demo/readme.html +11 -15
- package/components/counter/demo/readme.md +21 -51
- package/components/counter/demo/styles.css +974 -0
- package/components/counter/demo/voiceover.html +51 -0
- package/components/counter/demo/voiceover.md +80 -0
- package/components/counter/dist/index.js +6 -6
- package/components/counter/dist/registered.js +6 -6
- package/components/datepicker/README.md +10 -24
- package/components/datepicker/demo/accessibility.html +50 -0
- package/components/datepicker/demo/accessibility.md +64 -0
- package/components/datepicker/demo/api.md +69 -1739
- package/components/datepicker/demo/api.min.js +14 -14
- package/components/datepicker/demo/customize.html +53 -0
- package/components/datepicker/demo/customize.md +723 -0
- package/components/datepicker/demo/demo-support.js +60 -0
- package/components/{select/demo/layout.html → datepicker/demo/design.html} +7 -47
- package/components/datepicker/demo/design.md +158 -0
- package/components/datepicker/demo/getting-started.html +53 -0
- package/components/datepicker/demo/getting-started.md +237 -0
- package/components/datepicker/demo/index.html +14 -34
- package/components/datepicker/demo/index.md +160 -103
- package/components/datepicker/demo/index.min.js +14 -14
- package/components/datepicker/demo/keyboard-behavior.html +12 -33
- package/components/datepicker/demo/layout.md +92 -0
- package/components/datepicker/demo/readme.md +10 -24
- package/components/datepicker/demo/styles.css +974 -0
- package/components/{dropdown/demo/keyboardBehavior.html → datepicker/demo/voiceover.html} +14 -36
- package/components/datepicker/demo/voiceover.md +98 -0
- package/components/datepicker/dist/index.js +14 -14
- package/components/datepicker/dist/registered.js +14 -14
- package/components/dropdown/README.md +0 -25
- package/components/dropdown/demo/accessibility.html +49 -0
- package/components/dropdown/demo/accessibility.md +45 -0
- package/components/dropdown/demo/api.html +10 -19
- package/components/dropdown/demo/api.md +40 -1364
- package/components/dropdown/demo/api.min.js +2 -2
- package/components/dropdown/demo/customize.html +54 -0
- package/components/dropdown/demo/customize.md +780 -0
- package/components/dropdown/demo/demo-support.js +60 -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 +317 -0
- package/components/dropdown/demo/index.html +12 -20
- package/components/dropdown/demo/index.md +70 -225
- package/components/dropdown/demo/index.min.js +2 -2
- package/components/dropdown/demo/keyboard-behavior.html +49 -0
- package/components/dropdown/demo/keyboard-behavior.md +4 -8
- package/components/dropdown/demo/layout.md +21 -0
- package/components/dropdown/demo/readme.html +7 -20
- package/components/dropdown/demo/readme.md +0 -25
- package/components/dropdown/demo/styles.css +974 -0
- package/components/dropdown/demo/voiceover.html +51 -0
- package/components/dropdown/demo/voiceover.md +63 -0
- package/components/dropdown/dist/index.js +2 -2
- package/components/dropdown/dist/registered.js +2 -2
- package/components/form/README.md +9 -13
- package/components/form/demo/accessibility.html +51 -0
- package/components/form/demo/accessibility.md +23 -0
- package/components/form/demo/api.html +11 -14
- package/components/form/demo/api.md +14 -290
- package/components/form/demo/api.min.js +53 -50
- package/components/form/demo/customize.html +54 -0
- package/components/form/demo/customize.md +246 -0
- package/components/form/demo/demo-support.js +60 -0
- package/components/form/demo/getting-started.html +54 -0
- package/components/form/demo/getting-started.md +291 -0
- package/components/form/demo/index.html +12 -14
- package/components/form/demo/index.md +66 -96
- package/components/form/demo/index.min.js +53 -50
- package/components/form/demo/keyboard-behavior.html +51 -0
- package/components/form/demo/readme.html +12 -17
- package/components/form/demo/readme.md +9 -13
- package/components/form/demo/styles.css +974 -0
- package/components/form/demo/voiceover.html +51 -0
- package/components/form/demo/voiceover.md +36 -0
- package/components/helptext/dist/index.js +1 -1
- package/components/helptext/dist/registered.js +1 -1
- package/components/input/README.md +17 -28
- package/components/input/demo/accessibility.html +38 -0
- package/components/input/demo/accessibility.md +69 -0
- package/components/input/demo/api.html +17 -22
- package/components/input/demo/api.js +4 -23
- package/components/input/demo/api.md +67 -1267
- package/components/input/demo/api.min.js +6 -98
- package/components/input/demo/customize.html +54 -0
- package/components/input/demo/customize.js +25 -0
- package/components/input/demo/customize.md +1372 -0
- package/components/input/demo/customize.min.js +7431 -0
- package/components/input/demo/demo-support.js +60 -0
- package/components/input/demo/design.html +39 -0
- package/components/input/demo/design.md +224 -0
- package/components/input/demo/getting-started.html +53 -0
- package/components/input/demo/getting-started.js +8 -0
- package/components/input/demo/getting-started.md +312 -0
- package/components/input/demo/getting-started.min.js +7369 -0
- package/components/input/demo/index.html +16 -22
- package/components/input/demo/index.js +0 -11
- package/components/input/demo/index.md +171 -139
- package/components/input/demo/index.min.js +6 -18
- package/components/input/demo/keyboard-behavior.html +38 -0
- package/components/input/demo/layout.md +77 -0
- package/components/input/demo/readme.md +17 -28
- package/components/input/demo/styles.css +974 -0
- package/components/input/demo/voiceover.html +38 -0
- package/components/input/demo/voiceover.md +70 -0
- package/components/input/dist/base-input.d.ts +1 -0
- package/components/input/dist/index.js +6 -6
- package/components/input/dist/registered.js +6 -6
- package/components/menu/README.md +1 -5
- package/components/menu/demo/api.md +43 -43
- package/components/menu/demo/api.min.js +2 -2
- package/components/menu/demo/index.md +1 -1
- package/components/menu/demo/index.min.js +2 -2
- package/components/menu/demo/readme.md +1 -5
- package/components/menu/dist/index.js +2 -2
- package/components/menu/dist/registered.js +2 -2
- package/components/radio/README.md +9 -22
- package/components/radio/demo/accessibility.html +51 -0
- package/components/radio/demo/accessibility.md +44 -0
- package/components/radio/demo/api.html +13 -20
- package/components/radio/demo/api.md +44 -589
- package/components/radio/demo/api.min.js +3 -3
- package/components/radio/demo/customize.html +53 -0
- package/components/radio/demo/customize.md +368 -0
- package/components/radio/demo/demo-support.js +60 -0
- package/components/radio/demo/design.html +52 -0
- package/components/radio/demo/design.md +143 -0
- package/components/radio/demo/getting-started.html +54 -0
- package/components/radio/demo/getting-started.md +296 -0
- package/components/radio/demo/index.html +16 -19
- package/components/radio/demo/index.md +110 -45
- package/components/radio/demo/index.min.js +3 -3
- package/components/radio/demo/keyboard-behavior.html +51 -0
- package/components/radio/demo/layout.md +30 -0
- package/components/radio/demo/readme.html +11 -17
- package/components/radio/demo/readme.md +9 -22
- package/components/radio/demo/styles.css +974 -0
- package/components/radio/demo/voiceover.html +51 -0
- package/components/radio/demo/voiceover.md +43 -0
- package/components/radio/dist/index.js +3 -3
- package/components/radio/dist/registered.js +3 -3
- package/components/select/README.md +7 -4
- package/components/select/demo/accessibility.html +5 -21
- package/components/select/demo/accessibility.md +1 -1
- package/components/select/demo/api.html +3 -48
- package/components/select/demo/api.md +52 -2342
- package/components/select/demo/customize.html +54 -0
- package/components/select/demo/customize.js +11 -0
- package/components/select/demo/customize.md +1049 -0
- package/components/select/demo/{api.min.js → customize.min.js} +12 -113
- package/components/select/demo/demo-support.js +60 -0
- package/components/select/demo/design.html +3 -44
- package/components/select/demo/design.md +2 -2
- package/components/select/demo/getting-started.html +5 -76
- package/components/select/demo/getting-started.js +20 -3
- package/components/select/demo/getting-started.md +97 -705
- package/components/select/demo/getting-started.min.js +58 -9
- package/components/select/demo/index.html +4 -43
- package/components/select/demo/index.js +5 -3
- package/components/select/demo/index.md +2 -2
- package/components/select/demo/index.min.js +14 -9
- package/components/select/demo/keyboard-behavior.html +6 -47
- package/components/select/demo/keyboard-behavior.md +5 -6
- package/components/select/demo/keyboardBehavior.html +4 -46
- package/components/select/demo/readme.html +3 -44
- package/components/select/demo/readme.md +7 -4
- package/components/select/demo/styles.css +57 -109
- package/components/select/demo/voiceover.html +3 -30
- package/components/select/dist/index.js +5 -5
- package/components/select/dist/registered.js +5 -5
- package/custom-elements.json +249 -246
- package/package.json +3 -3
- package/components/combobox/demo/install.html +0 -94
- package/components/combobox/demo/install.md +0 -98
- package/components/select/demo/api.js +0 -39
- package/components/select/demo/install.md +0 -92
|
@@ -101,18 +101,15 @@ To only develop a single component, use the `--filter` flag:
|
|
|
101
101
|
<pre class="language-shell"><code class="language-shell">npx turbo dev --filter=@aurodesignsystem/auro-input</code></pre>
|
|
102
102
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
103
103
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/customRegistration.md) -->
|
|
104
|
-
<!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
|
|
104
|
+
<!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
|
|
105
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../../docs/partials/customRegistrationDescription.md) -->
|
|
106
|
+
<!-- The below content is automatically added from ./../../../docs/partials/customRegistrationDescription.md -->
|
|
107
|
+
<p>Every Auro component consists of a JavaScript <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes">class</a> and a <a href="https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define">custom element registration</a>. The class defines the component's behavior, and the registration maps it to an HTML tag name so it can be used in markup.</p>
|
|
108
|
+
<p>The default import (shown above) handles both steps automatically, registering the component under its standard tag name.</p>
|
|
109
|
+
<p>If you need multiple versions of the same component on a single page — for example, when two projects depend on different versions — you can register the class under a custom tag name to avoid conflicts.</p>
|
|
110
|
+
<p>To do this, import the component class directly and call its <code>register(name)</code> method with a unique name:</p>
|
|
111
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
105
112
|
|
|
106
|
-
## Custom Component Registration for Version Management
|
|
107
|
-
|
|
108
|
-
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.
|
|
109
|
-
|
|
110
|
-
When you install the component as described on the `Install` page, the class is imported automatically, and the component is registered globally for you.
|
|
111
|
-
|
|
112
|
-
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.
|
|
113
|
-
|
|
114
|
-
You can do this by importing only the component class and using the `register(name)` method with a unique name:
|
|
115
|
-
|
|
116
113
|
<pre class="language-js"><code class="language-js">// Import the class only
|
|
117
114
|
import { AuroCombobox } from '@aurodesignsystem/auro-formkit/auro-combobox/class';
|
|
118
115
|
|
|
@@ -121,23 +118,6 @@ AuroCombobox.register('custom-combobox');</code></pre>
|
|
|
121
118
|
|
|
122
119
|
This will create a new custom element `<custom-combobox>` that behaves exactly like `<auro-combobox>`, allowing both to coexist on the same page without interfering with each other.
|
|
123
120
|
|
|
124
|
-
<div class="exampleWrapper exampleWrapper--flex">
|
|
125
|
-
<custom-combobox>
|
|
126
|
-
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
127
|
-
<span slot="label">Name</span>
|
|
128
|
-
<auro-menu>
|
|
129
|
-
<auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
|
|
130
|
-
<auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
|
|
131
|
-
<auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
|
|
132
|
-
<auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
|
|
133
|
-
<auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
|
|
134
|
-
<auro-menuoption static nomatch>No matching option</auro-menuoption>
|
|
135
|
-
</auro-menu>
|
|
136
|
-
</custom-combobox>
|
|
137
|
-
</div>
|
|
138
|
-
<auro-accordion alignRight>
|
|
139
|
-
<span slot="trigger">See code</span>
|
|
140
|
-
|
|
141
121
|
<pre class="language-html"><code class="language-html"><custom-combobox>
|
|
142
122
|
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
143
123
|
<span slot="label">Name</span>
|
|
@@ -150,5 +130,4 @@ This will create a new custom element `<custom-combobox>` that behaves exactly l
|
|
|
150
130
|
<auro-menuoption static nomatch>No matching option</auro-menuoption>
|
|
151
131
|
</auro-menu>
|
|
152
132
|
</custom-combobox></code></pre>
|
|
153
|
-
</auro-accordion>
|
|
154
133
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -1,66 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
display: grid;
|
|
3
|
-
max-width: 1232px;
|
|
4
|
-
margin-left: auto;
|
|
5
|
-
margin-right: auto;
|
|
6
|
-
gap: 0.5rem;
|
|
7
|
-
}
|
|
8
|
-
@media screen and (min-width: 576px) {
|
|
9
|
-
.grid {
|
|
10
|
-
gap: var(--ds-grid-gutter-sm, 1rem);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
@media screen and (min-width: 768px) {
|
|
14
|
-
.grid {
|
|
15
|
-
gap: var(--ds-grid-gutter-md, 1.5rem);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
@media screen and (min-width: 1024px) {
|
|
19
|
-
.grid {
|
|
20
|
-
gap: var(--ds-grid-gutter-lg, 1.5rem);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
@media screen and (min-width: 1232px) {
|
|
24
|
-
.grid {
|
|
25
|
-
gap: var(--ds-grid-gutter-xl, 2rem);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
.grid.two-column, .grid.fixed-anchor, .grid.fixed-nav {
|
|
29
|
-
grid-template-columns: repeat(auto-fit, minmax(2rem, 1fr));
|
|
30
|
-
grid-template-areas: "col1" "col2";
|
|
31
|
-
}
|
|
32
|
-
.grid.two-column > :nth-child(1), .grid.fixed-anchor > :nth-child(1), .grid.fixed-nav > :nth-child(1) {
|
|
33
|
-
grid-area: col1;
|
|
34
|
-
}
|
|
35
|
-
.grid.two-column > :nth-child(2), .grid.fixed-anchor > :nth-child(2), .grid.fixed-nav > :nth-child(2) {
|
|
36
|
-
grid-area: col2;
|
|
37
|
-
}
|
|
38
|
-
@media screen and (min-width: 768px) {
|
|
39
|
-
.grid.two-column, .grid.fixed-anchor, .grid.fixed-nav {
|
|
40
|
-
grid-template-areas: "col1 col2";
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
.grid.fixed-nav > :nth-child(1) {
|
|
44
|
-
position: sticky;
|
|
45
|
-
top: 0;
|
|
46
|
-
--align-self: stretch;
|
|
47
|
-
align-self: var(--align-self);
|
|
48
|
-
}
|
|
49
|
-
@media screen and (min-width: 768px) {
|
|
50
|
-
.grid.fixed-nav {
|
|
51
|
-
grid-template-columns: var(--fixed-nav-width, 280px) auto;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
.grid.fixed-anchor {
|
|
55
|
-
grid-template-areas: "col2" "col1";
|
|
56
|
-
}
|
|
57
|
-
@media screen and (min-width: 768px) {
|
|
58
|
-
.grid.fixed-anchor {
|
|
59
|
-
grid-template-areas: "col1 col2";
|
|
60
|
-
grid-template-columns: auto var(--fixed-nav-width, 280px);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
1
|
+
/* stylelint-disable no-invalid-position-at-import-rule */
|
|
64
2
|
.container {
|
|
65
3
|
display: grid;
|
|
66
4
|
margin-left: auto;
|
|
@@ -243,7 +181,7 @@
|
|
|
243
181
|
}
|
|
244
182
|
.pageLayout-2colSideNav .sidenav {
|
|
245
183
|
grid-area: sidenav;
|
|
246
|
-
background-color: var(--ds-color-
|
|
184
|
+
background-color: var(--ds-color-container-primary-default, #ffffff);
|
|
247
185
|
padding-left: 1rem;
|
|
248
186
|
padding-right: 1rem;
|
|
249
187
|
}
|
|
@@ -333,7 +271,7 @@
|
|
|
333
271
|
.pageLayout-3col .sidenav {
|
|
334
272
|
grid-area: sidenav;
|
|
335
273
|
z-index: 1;
|
|
336
|
-
background-color: var(--ds-color-
|
|
274
|
+
background-color: var(--ds-color-container-primary-default, #ffffff);
|
|
337
275
|
padding-left: 1rem;
|
|
338
276
|
padding-right: 1rem;
|
|
339
277
|
position: sticky;
|
|
@@ -387,21 +325,21 @@
|
|
|
387
325
|
font-weight: var(--ds-text-heading-display-weight, 100);
|
|
388
326
|
font-style: normal;
|
|
389
327
|
font-display: fallback;
|
|
390
|
-
src: url("https://
|
|
328
|
+
src: url("https://www.alaskaair.com/v3/assets/blt2cefe12c88e9dd91/bltd55b385b9432ca51/ASCircularWeb-Light?environment=production") format("woff2"), url("https://www.alaskaair.com/v3/assets/blt2cefe12c88e9dd91/blt1566a6d54c0bf457/ASCircularWeb-Light?environment=production") format("woff");
|
|
391
329
|
}
|
|
392
330
|
@font-face {
|
|
393
331
|
font-family: "AS Circular";
|
|
394
332
|
font-weight: var(--ds-text-heading-medium-weight, 300);
|
|
395
333
|
font-style: normal;
|
|
396
334
|
font-display: fallback;
|
|
397
|
-
src: url("https://
|
|
335
|
+
src: url("https://www.alaskaair.com/v3/assets/blt2cefe12c88e9dd91/bltc48385a5d7dd0f20/ASCircularWeb-Medium?environment=production") format("woff2"), url("https://www.alaskaair.com/v3/assets/blt2cefe12c88e9dd91/bltf30c93842722e935/ASCircularWeb-Medium?environment=production") format("woff");
|
|
398
336
|
}
|
|
399
337
|
@font-face {
|
|
400
338
|
font-family: "AS Circular";
|
|
401
339
|
font-weight: var(--ds-text-body-default-weight, 500);
|
|
402
340
|
font-style: normal;
|
|
403
341
|
font-display: fallback;
|
|
404
|
-
src: url("https://
|
|
342
|
+
src: url("https://www.alaskaair.com/v3/assets/blt2cefe12c88e9dd91/blt3b851fb0e0de3833/ASCircularWeb-Book?environment=production") format("woff2"), url("https://www.alaskaair.com/v3/assets/blt2cefe12c88e9dd91/blt8b440e82e9793058/ASCircularWeb-Book?environment=production") format("woff");
|
|
405
343
|
}
|
|
406
344
|
/* Document
|
|
407
345
|
========================================================================== */
|
|
@@ -691,10 +629,10 @@ template {
|
|
|
691
629
|
|
|
692
630
|
blockquote {
|
|
693
631
|
margin-left: 0;
|
|
694
|
-
border-left: 1px solid var(--ds-color-border-active-default, #
|
|
632
|
+
border-left: 1px solid var(--ds-color-border-ui-active-default, #225296);
|
|
695
633
|
padding: var(--ds-size-100, 0.5rem);
|
|
696
634
|
padding-left: var(--ds-size-400, 2rem);
|
|
697
|
-
color: var(--ds-color-text-secondary-default, #
|
|
635
|
+
color: var(--ds-color-text-secondary-default, #525252);
|
|
698
636
|
font-weight: 200;
|
|
699
637
|
margin-top: var(--ds-size-300, 1.5rem);
|
|
700
638
|
margin-bottom: var(--ds-size-300, 1.5rem);
|
|
@@ -719,7 +657,7 @@ blockquote + p, .auro-markdown blockquote + p {
|
|
|
719
657
|
font-weight: var(--ds-text-heading-display-weight, 100);
|
|
720
658
|
}
|
|
721
659
|
.auro_table tr:nth-child(even), .auro-markdown table tr:nth-child(even) {
|
|
722
|
-
background-color: var(--ds-color-
|
|
660
|
+
background-color: var(--ds-color-container-secondary-default, #f7f7f7);
|
|
723
661
|
}
|
|
724
662
|
.auro_table th, .auro-markdown table th {
|
|
725
663
|
text-align: left;
|
|
@@ -733,7 +671,7 @@ blockquote + p, .auro-markdown blockquote + p {
|
|
|
733
671
|
}
|
|
734
672
|
.auro_table thead, .auro-markdown table thead {
|
|
735
673
|
border-collapse: collapse;
|
|
736
|
-
border-bottom: 1px solid var(--ds-color-
|
|
674
|
+
border-bottom: 1px solid var(--ds-color-border-tertiary-default, #dddddd);
|
|
737
675
|
}
|
|
738
676
|
.auro_table th, .auro-markdown table th,
|
|
739
677
|
.auro_table td,
|
|
@@ -741,23 +679,13 @@ blockquote + p, .auro-markdown blockquote + p {
|
|
|
741
679
|
padding: var(--ds-size-200, 1rem);
|
|
742
680
|
}
|
|
743
681
|
|
|
744
|
-
*, *:before, *:after {
|
|
745
|
-
box-sizing: border-box;
|
|
746
|
-
}
|
|
747
|
-
@media (prefers-reduced-motion: reduce) {
|
|
748
|
-
*, *:before, *:after {
|
|
749
|
-
animation-duration: 0.01ms !important;
|
|
750
|
-
animation-iteration-count: 1 !important;
|
|
751
|
-
transition-duration: 0.01ms !important;
|
|
752
|
-
}
|
|
753
|
-
}
|
|
754
682
|
*:focus-visible {
|
|
755
|
-
outline:
|
|
756
|
-
}
|
|
757
|
-
*:focus-visible {
|
|
758
|
-
outline: 0;
|
|
683
|
+
outline: 1px solid var(--ds-color-border-ui-focus-default, #2c67b5);
|
|
759
684
|
}
|
|
760
685
|
|
|
686
|
+
/*
|
|
687
|
+
Essentials for Auro Classic theme
|
|
688
|
+
*/
|
|
761
689
|
:focus:not(:focus-visible) {
|
|
762
690
|
outline: 3px solid transparent;
|
|
763
691
|
}
|
|
@@ -772,8 +700,8 @@ html {
|
|
|
772
700
|
body,
|
|
773
701
|
.baseType {
|
|
774
702
|
margin: 0;
|
|
775
|
-
color: var(--ds-color-text-primary-default, #
|
|
776
|
-
font-family: var(--ds-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);
|
|
703
|
+
color: var(--ds-color-text-primary-default, #2a2a2a);
|
|
704
|
+
font-family: var(--ds-font-family-default, "AS Circular", "Helvetica Neue", Arial, sans-serif);
|
|
777
705
|
font-variant-ligatures: no-common-ligatures;
|
|
778
706
|
font-size: var(--ds-text-body-size-default, 1rem);
|
|
779
707
|
font-weight: var(--ds-text-body-default-weight, 500);
|
|
@@ -790,10 +718,10 @@ body,
|
|
|
790
718
|
|
|
791
719
|
.hyperlink, .auro-markdown a {
|
|
792
720
|
text-decoration: underline;
|
|
793
|
-
color: var(--ds-color-ui-default-default, #
|
|
721
|
+
color: var(--ds-color-text-ui-default-default, #2c67b5);
|
|
794
722
|
}
|
|
795
723
|
.hyperlink:visited, .auro-markdown a:visited {
|
|
796
|
-
color: var(--ds-color-ui-default-default, #
|
|
724
|
+
color: var(--ds-color-text-ui-default-default, #2c67b5);
|
|
797
725
|
}
|
|
798
726
|
.hyperlink--nav {
|
|
799
727
|
display: block;
|
|
@@ -803,17 +731,17 @@ body,
|
|
|
803
731
|
text-decoration: underline !important;
|
|
804
732
|
}
|
|
805
733
|
.hyperlink--ondark {
|
|
806
|
-
color: var(--ds-color-ui-default-inverse, #
|
|
734
|
+
color: var(--ds-color-text-ui-default-inverse, #56bbde);
|
|
807
735
|
}
|
|
808
736
|
.hyperlink--ondark:not(.is-touching):hover {
|
|
809
|
-
color: var(--ds-color-ui-hover-inverse, #
|
|
737
|
+
color: var(--ds-color-text-ui-hover-inverse, #a8e9f7);
|
|
810
738
|
}
|
|
811
739
|
.hyperlink--ondark:visited {
|
|
812
|
-
color: var(--ds-color-ui-default-inverse, #
|
|
740
|
+
color: var(--ds-color-text-ui-default-inverse, #56bbde);
|
|
813
741
|
}
|
|
814
742
|
.hyperlink:not(.is-touching):hover, .auro-markdown a:not(.is-touching):hover {
|
|
815
743
|
text-decoration: none;
|
|
816
|
-
color: var(--ds-color-ui-hover-default, #
|
|
744
|
+
color: var(--ds-color-text-ui-hover-default, #193d73);
|
|
817
745
|
}
|
|
818
746
|
|
|
819
747
|
img {
|
|
@@ -828,18 +756,23 @@ small,
|
|
|
828
756
|
|
|
829
757
|
/* stylelint-disable-line scss/dollar-variable-first-in-block */
|
|
830
758
|
.fineprint {
|
|
831
|
-
font-family: var(--ds-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);
|
|
759
|
+
font-family: var(--ds-font-family-default, "AS Circular", "Helvetica Neue", Arial, sans-serif);
|
|
832
760
|
font-size: var(--ds-text-body-size-xs, 0.75rem);
|
|
833
761
|
line-height: var(--ds-text-body-height-xs, 1rem);
|
|
834
|
-
color: var(--ds-color-text-secondary-default, #
|
|
762
|
+
color: var(--ds-color-text-secondary-default, #525252);
|
|
835
763
|
}
|
|
836
764
|
|
|
837
765
|
/* stylelint-disable selector-type-no-unknown */
|
|
838
766
|
.auro-markdown p:last-child {
|
|
839
767
|
margin-bottom: 0;
|
|
840
768
|
}
|
|
769
|
+
.hljs {
|
|
770
|
+
background-color: unset !important;
|
|
771
|
+
padding: unset !important;
|
|
772
|
+
}
|
|
773
|
+
|
|
841
774
|
pre {
|
|
842
|
-
background: var(--ds-color-brand-gray-100, #
|
|
775
|
+
background: var(--ds-color-brand-gray-100, #f7f7f7) !important;
|
|
843
776
|
border: unset !important;
|
|
844
777
|
padding: var(--ds-size-200) !important;
|
|
845
778
|
margin-bottom: var(--ds-size-300, 1.5rem) !important;
|
|
@@ -857,15 +790,42 @@ pre code {
|
|
|
857
790
|
text-shadow: none;
|
|
858
791
|
}
|
|
859
792
|
|
|
793
|
+
.pre-wrapper:last-of-type pre {
|
|
794
|
+
margin-bottom: 0 !important;
|
|
795
|
+
}
|
|
796
|
+
|
|
860
797
|
code:not(.html):not(.css):not(.js):not([class*=language-]) {
|
|
861
798
|
color: var(--ds-color-brand-flamingo-500, #b82b47);
|
|
799
|
+
margin-bottom: 0 !important;
|
|
862
800
|
}
|
|
863
801
|
|
|
864
802
|
.token.operator {
|
|
865
803
|
background-color: unset !important;
|
|
866
804
|
}
|
|
867
805
|
|
|
868
|
-
auro-accordion {
|
|
806
|
+
auro-accordion:not(.section) {
|
|
807
|
+
margin-top: 1rem !important;
|
|
808
|
+
display: block;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
auro-accordion:not(.section):nth-child(2) {
|
|
812
|
+
margin-block-start: 0;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
auro-accordion[class~=section]::part(accordion) {
|
|
816
|
+
padding-right: 2px;
|
|
817
|
+
display: block;
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
.accordion-content {
|
|
821
|
+
padding-top: 1rem;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
.token.operator {
|
|
825
|
+
background-color: unset !important;
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
auro-accordion:not(auro-accordion-group *) {
|
|
869
829
|
margin-top: 1rem !important;
|
|
870
830
|
display: block;
|
|
871
831
|
}
|
|
@@ -902,18 +862,19 @@ auro-accordion {
|
|
|
902
862
|
background-color: var(--ds-basic-color-surface-default);
|
|
903
863
|
padding: 1rem;
|
|
904
864
|
border-radius: 0.5rem;
|
|
865
|
+
margin-top: 1rem;
|
|
905
866
|
}
|
|
906
867
|
|
|
907
868
|
.exampleWrapper--ondark {
|
|
908
869
|
background-color: var(--ds-basic-color-surface-inverse);
|
|
909
870
|
padding: 1rem;
|
|
910
871
|
border-radius: 0.5rem;
|
|
872
|
+
margin-top: 1rem;
|
|
911
873
|
}
|
|
912
874
|
|
|
913
875
|
table {
|
|
914
876
|
--ds-color-container-secondary-default: transparent;
|
|
915
877
|
}
|
|
916
|
-
|
|
917
878
|
table.compressed {
|
|
918
879
|
width: unset !important;
|
|
919
880
|
margin: var(--ds-size-50) 0 var(--ds-size-100) !important;
|
|
@@ -942,10 +903,21 @@ main {
|
|
|
942
903
|
}
|
|
943
904
|
|
|
944
905
|
.contentWrapper {
|
|
945
|
-
flex: 1;
|
|
946
906
|
display: flex;
|
|
947
907
|
flex-direction: row-reverse;
|
|
948
908
|
gap: 25px;
|
|
909
|
+
align-items: flex-start;
|
|
910
|
+
}
|
|
911
|
+
.contentWrapper > nav {
|
|
912
|
+
width: 200px;
|
|
913
|
+
flex-shrink: 0;
|
|
914
|
+
position: sticky;
|
|
915
|
+
top: 0;
|
|
916
|
+
height: 100vh;
|
|
917
|
+
overflow-y: auto;
|
|
918
|
+
}
|
|
919
|
+
.contentWrapper > nav auro-nav {
|
|
920
|
+
display: block;
|
|
949
921
|
}
|
|
950
922
|
|
|
951
923
|
.mainContent {
|
|
@@ -959,23 +931,44 @@ main {
|
|
|
959
931
|
|
|
960
932
|
.scrollWrapper {
|
|
961
933
|
flex: 1;
|
|
962
|
-
flex-basis: 0;
|
|
963
934
|
min-height: 0;
|
|
964
935
|
}
|
|
965
936
|
|
|
966
|
-
nav {
|
|
937
|
+
auro-nav {
|
|
967
938
|
max-width: 200px;
|
|
939
|
+
position: sticky;
|
|
940
|
+
top: 2rem;
|
|
941
|
+
align-self: flex-start;
|
|
942
|
+
max-height: calc(100vh - 4rem);
|
|
943
|
+
overflow-y: auto;
|
|
968
944
|
}
|
|
969
945
|
|
|
970
|
-
auro-anchorlink
|
|
946
|
+
auro-anchorlink[class~=level2] {
|
|
971
947
|
padding-left: var(--ds-size-200);
|
|
972
948
|
}
|
|
973
949
|
|
|
974
|
-
|
|
950
|
+
p:first-of-type {
|
|
951
|
+
margin-top: 0;
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
.note,
|
|
955
|
+
.warning {
|
|
975
956
|
margin: 10px 0;
|
|
976
957
|
padding: 10px;
|
|
977
958
|
border-radius: 6px;
|
|
978
959
|
font-style: italic;
|
|
979
|
-
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
.note {
|
|
980
963
|
background-color: var(--ds-basic-color-surface-neutral-subtle);
|
|
964
|
+
color: var(--ds-basic-color-texticon-muted);
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
.warning {
|
|
968
|
+
background-color: var(--ds-basic-color-status-error-subtle);
|
|
969
|
+
color: var(--ds-basic-color-status-error);
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
auro-header {
|
|
973
|
+
margin-top: 1rem;
|
|
981
974
|
}
|
|
@@ -48,26 +48,8 @@
|
|
|
48
48
|
<main></main>
|
|
49
49
|
|
|
50
50
|
<script type="module">
|
|
51
|
-
import {
|
|
52
|
-
|
|
53
|
-
import remarkGfm from 'https://esm.sh/remark-gfm';
|
|
54
|
-
import remarkRehype from 'https://esm.sh/remark-rehype';
|
|
55
|
-
import rehypeRaw from 'https://esm.sh/rehype-raw';
|
|
56
|
-
import rehypeHighlight from 'https://esm.sh/rehype-highlight';
|
|
57
|
-
import rehypeStringify from 'https://esm.sh/rehype-stringify';
|
|
58
|
-
|
|
59
|
-
const response = await fetch('./voiceover.md');
|
|
60
|
-
const text = await response.text();
|
|
61
|
-
const result = await unified()
|
|
62
|
-
.use(remarkParse)
|
|
63
|
-
.use(remarkGfm)
|
|
64
|
-
.use(remarkRehype, { allowDangerousHtml: true })
|
|
65
|
-
.use(rehypeRaw)
|
|
66
|
-
.use(rehypeHighlight)
|
|
67
|
-
.use(rehypeStringify)
|
|
68
|
-
.process(text);
|
|
69
|
-
|
|
70
|
-
document.querySelector('main').innerHTML = String(result);
|
|
51
|
+
import { renderPage } from './demo-support.js';
|
|
52
|
+
await renderPage('./voiceover.md');
|
|
71
53
|
</script>
|
|
72
54
|
|
|
73
55
|
<!-- If additional elements are needed for the demo, add them here. -->
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
</ul>
|
|
101
101
|
<auro-header level="2" id="voiceOverStates">Impact of State</auro-header>
|
|
102
102
|
<auro-header level="3" id="voiceOverStateDisabled">Disabled</auro-header>
|
|
103
|
-
<p
|
|
103
|
+
<p>What VoiceOver does:</p>
|
|
104
104
|
<ul>
|
|
105
105
|
<li>Focuses the element and announces it (e.g., <em>"[label], dimmed, combo box"</em> on macOS / <em>"[label], dimmed"</em> on iOS).</li>
|
|
106
106
|
<li>The word <strong>"dimmed"</strong> is VoiceOver's way of indicating disabled.</li>
|