@aurodesignsystem-dev/auro-formkit 0.0.0-pr1456.1 → 0.0.0-pr1457.0
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/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +10 -10
- package/components/bibtemplate/dist/registered.js +10 -10
- package/components/checkbox/README.md +26 -56
- package/components/checkbox/demo/accessibility.html +48 -0
- package/components/checkbox/demo/accessibility.md +44 -0
- package/components/checkbox/demo/api.html +17 -26
- package/components/checkbox/demo/api.md +0 -396
- package/components/checkbox/demo/api.min.js +2 -2106
- package/components/checkbox/demo/customize.html +51 -0
- package/components/checkbox/demo/customize.md +361 -0
- package/components/checkbox/demo/demo-support.js +60 -0
- package/components/checkbox/demo/demo-support.min.js +55732 -0
- package/components/checkbox/demo/design.html +51 -0
- package/components/checkbox/demo/design.md +149 -0
- package/components/checkbox/demo/getting-started.html +51 -0
- package/components/checkbox/demo/getting-started.md +261 -0
- package/components/checkbox/demo/index.html +17 -21
- package/components/checkbox/demo/index.md +158 -45
- package/components/checkbox/demo/index.min.js +2 -3
- package/components/checkbox/demo/install.md +82 -0
- package/components/checkbox/demo/keyboard-behavior.html +48 -0
- package/components/checkbox/demo/readme.html +10 -18
- package/components/checkbox/demo/readme.md +26 -56
- package/components/checkbox/demo/styles.min.css +1 -0
- package/components/checkbox/demo/styles.scss +1 -0
- package/components/checkbox/demo/voiceover.html +48 -0
- package/components/checkbox/demo/voiceover.md +37 -0
- package/components/checkbox/dist/auro-checkbox-group.d.ts +6 -6
- package/components/checkbox/dist/auro-checkbox.d.ts +8 -9
- package/components/checkbox/dist/index.js +2 -3
- package/components/checkbox/dist/registered.js +2 -3
- package/components/combobox/README.md +41 -66
- package/components/combobox/demo/accessibility.html +50 -0
- package/components/combobox/demo/accessibility.md +77 -0
- package/components/combobox/demo/api.html +8 -20
- package/components/combobox/demo/api.md +54 -2334
- package/components/combobox/demo/api.min.js +3 -17971
- package/components/combobox/demo/customize.html +52 -0
- package/components/combobox/demo/customize.js +24 -0
- package/components/combobox/demo/customize.md +1249 -0
- package/components/combobox/demo/customize.min.js +177 -0
- package/components/combobox/demo/demo-support.js +60 -0
- package/components/combobox/demo/demo-support.min.js +55732 -0
- package/components/combobox/demo/design.html +53 -0
- package/components/combobox/demo/design.md +283 -0
- package/components/combobox/demo/getting-started.html +52 -0
- package/components/combobox/demo/getting-started.js +21 -0
- package/components/combobox/demo/getting-started.md +397 -0
- package/components/combobox/demo/getting-started.min.js +12 -0
- package/components/combobox/demo/index.html +16 -22
- package/components/combobox/demo/index.js +3 -2
- package/components/combobox/demo/index.md +298 -188
- package/components/combobox/demo/index.min.js +13 -17956
- package/components/combobox/demo/install.md +77 -0
- package/components/combobox/demo/{keyboardBehavior.html → keyboard-behavior.html} +5 -11
- package/components/combobox/demo/keyboard-behavior.md +276 -0
- package/components/combobox/demo/readme.html +5 -11
- package/components/combobox/demo/readme.md +41 -66
- package/components/combobox/demo/registered.min.js +18095 -0
- package/components/combobox/demo/styles.css +974 -0
- package/components/combobox/demo/styles.min.css +1 -0
- package/components/combobox/demo/styles.scss +1 -0
- package/components/combobox/demo/swap-value.min.js +16 -0
- package/components/combobox/demo/voiceover.html +59 -0
- package/components/combobox/demo/voiceover.md +118 -0
- package/components/combobox/dist/auro-combobox.d.ts +35 -35
- package/components/combobox/dist/index.js +183 -46
- package/components/combobox/dist/registered.js +183 -46
- package/components/counter/README.md +37 -55
- package/components/counter/demo/api.md +745 -813
- package/components/counter/demo/api.min.js +182 -44
- package/components/counter/demo/index.md +28 -32
- package/components/counter/demo/index.min.js +182 -44
- package/components/counter/demo/keyboard-behavior.md +127 -0
- package/components/counter/demo/readme.md +37 -55
- package/components/counter/dist/auro-counter-group.d.ts +2 -2
- package/components/counter/dist/auro-counter.d.ts +10 -10
- package/components/counter/dist/index.js +181 -43
- package/components/counter/dist/registered.js +181 -43
- package/components/datepicker/README.md +23 -51
- package/components/datepicker/demo/accessibility.html +50 -0
- package/components/datepicker/demo/accessibility.md +64 -0
- package/components/datepicker/demo/api.md +0 -1774
- package/components/datepicker/demo/api.min.js +2 -24475
- package/components/datepicker/demo/auro-datepicker.min.js +24613 -0
- package/components/datepicker/demo/customize.html +52 -0
- package/components/datepicker/demo/customize.md +723 -0
- package/components/datepicker/demo/demo-support.js +60 -0
- package/components/datepicker/demo/demo-support.min.js +55732 -0
- package/components/datepicker/demo/design.html +54 -0
- package/components/datepicker/demo/design.md +158 -0
- package/components/datepicker/demo/getting-started.html +52 -0
- package/components/datepicker/demo/getting-started.md +237 -0
- package/components/datepicker/demo/index.html +14 -35
- package/components/datepicker/demo/index.md +201 -152
- package/components/datepicker/demo/index.min.js +1 -24474
- package/components/datepicker/demo/keyboard-behavior.html +12 -33
- package/components/datepicker/demo/readme.md +23 -51
- package/components/datepicker/demo/styles.min.css +1 -0
- package/components/datepicker/demo/styles.scss +1 -0
- package/components/datepicker/demo/voiceover.html +59 -0
- package/components/datepicker/demo/voiceover.md +98 -0
- package/components/datepicker/dist/index.js +194 -57
- package/components/datepicker/dist/registered.js +194 -57
- package/components/datepicker/dist/{auro-calendar-cell.d.ts → src/auro-calendar-cell.d.ts} +2 -2
- package/components/datepicker/dist/{auro-datepicker.d.ts → src/auro-datepicker.d.ts} +13 -13
- package/components/datepicker/dist/src/iconVersion.d.ts +2 -0
- package/components/datepicker/dist/{utilities.d.ts → src/utilities.d.ts} +4 -4
- package/components/datepicker/dist/{utilitiesCalendar.d.ts → src/utilitiesCalendar.d.ts} +3 -3
- package/components/datepicker/dist/{vendor → src/vendor}/wc-range-datepicker/range-datepicker-calendar.d.ts +2 -2
- package/components/datepicker/dist/{vendor → src/vendor}/wc-range-datepicker/range-datepicker.d.ts +1 -1
- package/components/dropdown/README.md +35 -53
- package/components/dropdown/demo/api.md +717 -773
- package/components/dropdown/demo/api.min.js +161 -23
- package/components/dropdown/demo/index.md +120 -130
- package/components/dropdown/demo/index.min.js +161 -23
- package/components/dropdown/demo/{keyboardBehavior.md → keyboard-behavior.md} +52 -57
- package/components/dropdown/demo/readme.md +35 -53
- package/components/dropdown/dist/auro-dropdown.d.ts +22 -22
- package/components/dropdown/dist/auro-dropdownBib.d.ts +3 -3
- package/components/dropdown/dist/dropdownBibKeyboardStrategy.d.ts +1 -1
- package/components/dropdown/dist/iconVersion.d.ts +1 -1
- package/components/dropdown/dist/index.js +160 -22
- package/components/dropdown/dist/registered.js +160 -22
- package/components/form/README.md +14 -34
- package/components/form/demo/api.md +156 -162
- package/components/form/demo/api.min.js +756 -208
- package/components/form/demo/index.md +27 -33
- package/components/form/demo/index.min.js +756 -208
- package/components/form/demo/keyboard-behavior.md +38 -0
- package/components/form/demo/readme.md +14 -34
- package/components/input/README.md +28 -53
- package/components/input/demo/accessibility.html +37 -0
- package/components/input/demo/accessibility.md +69 -0
- package/components/input/demo/api.html +17 -23
- package/components/input/demo/api.js +4 -23
- package/components/input/demo/api.md +67 -1359
- package/components/input/demo/api.min.js +1 -7453
- package/components/input/demo/auro-input.min.js +7362 -0
- package/components/input/demo/customize.html +53 -0
- package/components/input/demo/customize.js +25 -0
- package/components/input/demo/customize.md +1372 -0
- package/components/input/demo/customize.min.js +71 -0
- package/components/input/demo/demo-support.js +60 -0
- package/components/input/demo/demo-support.min.js +55732 -0
- package/components/input/demo/design.html +38 -0
- package/components/input/demo/design.md +224 -0
- package/components/input/demo/getting-started.html +52 -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 +9 -0
- package/components/input/demo/index.html +16 -23
- package/components/input/demo/index.js +0 -11
- package/components/input/demo/index.md +180 -154
- package/components/input/demo/index.min.js +1 -7373
- package/components/input/demo/keyboard-behavior.html +37 -0
- package/components/input/demo/readme.md +28 -53
- package/components/input/demo/styles.css +974 -0
- package/components/input/demo/styles.min.css +1 -0
- package/components/input/demo/styles.scss +1 -0
- package/components/input/demo/voiceover.html +37 -0
- package/components/input/demo/voiceover.md +70 -0
- package/components/input/dist/auro-input.d.ts +1 -1
- package/components/input/dist/base-input.d.ts +29 -30
- package/components/input/dist/iconVersion.d.ts +1 -1
- package/components/input/dist/index.js +10 -11
- package/components/input/dist/registered.js +10 -11
- package/components/menu/README.md +24 -42
- package/components/menu/demo/api.md +785 -829
- package/components/menu/demo/api.min.js +7 -7
- package/components/menu/demo/index.md +33 -35
- package/components/menu/demo/index.min.js +7 -7
- package/components/menu/demo/keyboard-behavior.md +18 -0
- package/components/menu/demo/readme.md +24 -42
- package/components/menu/dist/auro-menu-utils.d.ts +1 -1
- package/components/menu/dist/auro-menu.context.d.ts +3 -3
- package/components/menu/dist/auro-menu.d.ts +4 -4
- package/components/menu/dist/auro-menuoption.d.ts +6 -6
- package/components/menu/dist/index.js +6 -6
- package/components/menu/dist/registered.js +6 -6
- package/components/radio/README.md +22 -49
- 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 -621
- package/components/radio/demo/api.min.js +1 -1
- 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 +124 -63
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/demo/keyboard-behavior.html +51 -0
- package/components/radio/demo/keyboard-behavior.md +72 -0
- package/components/radio/demo/layout.md +30 -0
- package/components/radio/demo/readme.html +11 -17
- package/components/radio/demo/readme.md +22 -49
- 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/auro-radio-group.d.ts +9 -9
- package/components/radio/dist/auro-radio.d.ts +8 -8
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/README.md +50 -68
- package/components/select/demo/accessibility.html +50 -0
- package/components/select/demo/accessibility.md +76 -0
- package/components/select/demo/api.html +5 -17
- package/components/select/demo/api.md +52 -2422
- package/components/select/demo/customize.html +52 -0
- package/components/select/demo/customize.js +11 -0
- package/components/select/demo/customize.md +1049 -0
- package/components/select/demo/customize.min.js +12 -0
- package/components/select/demo/demo-support.js +60 -0
- package/components/select/demo/demo-support.min.js +55732 -0
- package/components/select/demo/design.html +51 -0
- package/components/select/demo/design.md +391 -0
- package/components/select/demo/getting-started.html +52 -0
- package/components/select/demo/getting-started.js +26 -0
- package/components/select/demo/getting-started.md +412 -0
- package/components/select/demo/getting-started.min.js +56 -0
- package/components/select/demo/index.html +18 -35
- package/components/select/demo/index.js +5 -3
- package/components/select/demo/index.md +165 -345
- package/components/select/demo/index.min.js +6 -10484
- package/components/select/demo/install.md +95 -0
- package/components/select/demo/keyboard-behavior.html +8 -39
- package/components/select/demo/keyboard-behavior.md +249 -0
- package/components/select/demo/keyboardBehavior.html +5 -38
- package/components/select/demo/layout.html +51 -0
- package/components/select/demo/readme.html +5 -13
- package/components/select/demo/readme.md +50 -68
- package/components/select/demo/{api.min.js → registered.min.js} +179 -151
- package/components/select/demo/styles.min.css +1 -0
- package/components/select/demo/styles.scss +1 -0
- package/components/select/demo/voiceover.html +48 -0
- package/components/select/demo/voiceover.md +183 -0
- package/components/select/dist/auro-select.d.ts +11 -11
- package/components/select/dist/index.js +171 -33
- package/components/select/dist/registered.js +171 -33
- package/custom-elements.json +1491 -1494
- package/package.json +37 -30
- package/components/checkbox/demo/keyboardBehavior.md +0 -0
- package/components/combobox/demo/keyboardBehavior.md +0 -281
- package/components/counter/demo/keyboardBehavior.md +0 -127
- package/components/datepicker/demo/keyboardBehavior.md +0 -19
- package/components/datepicker/dist/iconVersion.d.ts +0 -2
- package/components/form/demo/keyboardBehavior.md +0 -0
- package/components/input/demo/keyboardBehavior.md +0 -0
- package/components/menu/demo/keyboardBehavior.md +0 -0
- package/components/radio/demo/keyboardBehavior.md +0 -0
- package/components/select/demo/api.js +0 -39
- package/components/select/demo/keyboardBehavior.md +0 -245
- /package/components/datepicker/dist/{auro-calendar-month.d.ts → src/auro-calendar-month.d.ts} +0 -0
- /package/components/datepicker/dist/{auro-calendar.d.ts → src/auro-calendar.d.ts} +0 -0
- /package/components/datepicker/dist/{buttonVersion.d.ts → src/buttonVersion.d.ts} +0 -0
- /package/components/datepicker/dist/{datepickerKeyboardStrategy.d.ts → src/datepickerKeyboardStrategy.d.ts} +0 -0
- /package/components/datepicker/dist/{index.d.ts → src/index.d.ts} +0 -0
- /package/components/datepicker/dist/{popoverVersion.d.ts → src/popoverVersion.d.ts} +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/classic/color-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/classic/style-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/color-calendar-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/color-cell-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/color-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/color-month-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/shapeSize-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/snowflake/color-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/snowflake/style-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/style-auro-calendar-cell-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/style-auro-calendar-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/style-auro-calendar-month-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/style-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/tokens-css.d.ts +0 -0
- /package/components/datepicker/dist/{utilitiesCalendarRender.d.ts → src/utilitiesCalendarRender.d.ts} +0 -0
- /package/components/datepicker/dist/{vendor → src/vendor}/wc-range-datepicker/day.d.ts +0 -0
- /package/components/datepicker/dist/{vendor → src/vendor}/wc-range-datepicker/range-datepicker-cell.d.ts +0 -0
|
@@ -1,355 +1,175 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
#
|
|
8
|
-
|
|
1
|
+
<auro-header level="1" id="overview">Select - Overview and UX Guide</auro-header>
|
|
2
|
+
<div class="contentWrapper">
|
|
3
|
+
<nav>
|
|
4
|
+
<auro-nav anchorNavContent=".scrollWrapper">
|
|
5
|
+
<span slot="mobileToggleCollapsed">View More</span>
|
|
6
|
+
<span slot="mobileToggleExpanded">View Less</span>
|
|
7
|
+
<auro-anchorlink fluid href="#description">Description</auro-anchorlink>
|
|
8
|
+
<auro-anchorlink fluid href="#userStories">User Stories</auro-anchorlink>
|
|
9
|
+
<auro-anchorlink fluid href="#select" class="level2 body-xs">Select A Value</auro-anchorlink>
|
|
10
|
+
<auro-anchorlink fluid href="#presetValue" class="level2 body-xs">Preset Value</auro-anchorlink>
|
|
11
|
+
<auro-anchorlink fluid href="#multiselect" class="level2 body-xs">Multi-select</auro-anchorlink>
|
|
12
|
+
<auro-anchorlink fluid href="#autocomplete" class="level2 body-xs">Autocomplete</auro-anchorlink>
|
|
13
|
+
<auro-anchorlink fluid href="#skipSelection" class="level2 body-xs">Skip Selection</auro-anchorlink>
|
|
14
|
+
<auro-anchorlink fluid href="#viewport" class="level2 body-xs">Viewport Size</auro-anchorlink>
|
|
15
|
+
</auro-nav>
|
|
16
|
+
</nav>
|
|
17
|
+
<div class="mainContent">
|
|
18
|
+
<div class="scrollWrapper">
|
|
19
|
+
<auro-header level="2" id="description">Description</auro-header>
|
|
9
20
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/description.md) -->
|
|
10
21
|
<!-- The below content is automatically added from ./../docs/partials/description.md -->
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
A baseline `<auro-select>` using `<auro-menu>` and `<auro-menuoption>` elements.
|
|
26
|
-
|
|
22
|
+
<p>The component is a combination <auro-hyperlink href="https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements">HTML custom elements</auro-hyperlink> that consists of a pre-defined trigger element, <code><auro-menu></code> for the panel content. The <code><auro-select></code> element presents a menu of options. The options within the menu are represented by <code><auro-menu></code> and <code><auro-menuoption></code> elements. You can pre-select options for the user with the `selected` attribute as part of the <code><auro-menuoption></code> API.</p>
|
|
23
|
+
<p>The component is used to create a drop-down list for user input within a form. It acts as a container for options.</p>
|
|
24
|
+
<p>Key features:</p>
|
|
25
|
+
<ul>
|
|
26
|
+
<li>Preset values</li>
|
|
27
|
+
<li>Mark as required when in a form</li>
|
|
28
|
+
<li>Disable individual options or the entire component</li>
|
|
29
|
+
<li>Enable multi-select</li>
|
|
30
|
+
<li>Separate options into groups with dividers</li>
|
|
31
|
+
<li>Group options into nested levels</li>
|
|
32
|
+
<li>Autocomplete</li>
|
|
33
|
+
</ul>
|
|
34
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
27
35
|
<div class="exampleWrapper">
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
<auro-select>
|
|
31
|
-
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
32
|
-
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
33
|
-
<span slot="label">Select Example</span>
|
|
34
|
-
<auro-menu>
|
|
35
|
-
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
36
|
-
<auro-menuoption value="price">Price</auro-menuoption>
|
|
37
|
-
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
38
|
-
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
39
|
-
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
40
|
-
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
41
|
-
</auro-menu>
|
|
42
|
-
</auro-select>
|
|
43
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
44
|
-
</div>
|
|
45
|
-
<auro-accordion alignRight>
|
|
46
|
-
<span slot="trigger">See code</span>
|
|
47
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
|
|
48
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
|
|
49
|
-
|
|
50
|
-
```html
|
|
36
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
37
|
+
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
51
38
|
<auro-select>
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
</auro-select>
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
</auro-accordion>
|
|
67
|
-
|
|
68
|
-
### Shape | Size | Layout Support
|
|
69
|
-
|
|
70
|
-
The `auro-select` component supports the `shape`, `size` and `layout` feature set. The component defaults to the `layout="classic"`, `shape="classic"` and `size="lg"`.
|
|
71
|
-
|
|
72
|
-
#### Classic Layout (Legacy)
|
|
73
|
-
|
|
74
|
-
The `classic` layout is default for `auro-select`. No customization is needed to achieve this look.
|
|
75
|
-
|
|
76
|
-
<div class="exampleWrapper">
|
|
77
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
78
|
-
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
79
|
-
<auro-select>
|
|
80
|
-
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
81
|
-
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
82
|
-
<span slot="label">Select Example</span>
|
|
83
|
-
<auro-menu>
|
|
84
|
-
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
85
|
-
<auro-menuoption value="price">Price</auro-menuoption>
|
|
86
|
-
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
87
|
-
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
88
|
-
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
89
|
-
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
90
|
-
</auro-menu>
|
|
91
|
-
</auro-select>
|
|
92
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
93
|
-
</div>
|
|
39
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
40
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
41
|
+
<span slot="label">Select Example</span>
|
|
42
|
+
<auro-menu>
|
|
43
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
44
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
45
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
46
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
47
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
48
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
49
|
+
</auro-menu>
|
|
50
|
+
</auro-select>
|
|
51
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
52
|
+
</div>
|
|
94
53
|
<auro-accordion alignRight>
|
|
95
|
-
|
|
54
|
+
<span slot="trigger">See code</span>
|
|
96
55
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
|
|
97
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
</auro-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
The
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
<!-- The below content is automatically added from ./../apiExamples/emphasized/basic.html -->
|
|
132
|
-
<div style="display: flex; flex-direction: row; gap: 10px;">
|
|
133
|
-
<auro-select layout="emphasized" shape="pill" size="xl" value="flights" forceDisplayValue style="display:inline-block;">
|
|
134
|
-
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
135
|
-
<span slot="label">Select Example</span>
|
|
136
|
-
<auro-menu nocheckmark>
|
|
137
|
-
<auro-menuoption value="flights">
|
|
138
|
-
<auro-icon category="terminal" name="plane-diag-stroke" customcolor></auro-icon> Flights
|
|
139
|
-
<auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="terminal" name="plane-diag-fill" customcolor></auro-icon>
|
|
140
|
-
</auro-menuoption>
|
|
141
|
-
<auro-menuoption value="cars">
|
|
142
|
-
<auro-icon category="destination" name="car-rental-stroke" customcolor></auro-icon> Cars
|
|
143
|
-
<auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="destination" name="car-rental-stroke" customcolor></auro-icon>
|
|
144
|
-
</auro-menuoption>
|
|
145
|
-
<auro-menuoption value="hotels">
|
|
146
|
-
<auro-icon category="destination" name="hotel-stroke" customcolor></auro-icon> Hotels
|
|
147
|
-
<auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="destination" name="hotel-filled" customcolor></auro-icon>
|
|
148
|
-
</auro-menuoption>
|
|
149
|
-
<auro-menuoption value="packages">
|
|
150
|
-
<auro-icon category="shop" name="gift-stroke" customcolor></auro-icon> Packages
|
|
151
|
-
<auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="shop" name="gift-filled" customcolor></auro-icon>
|
|
152
|
-
</auro-menuoption>
|
|
153
|
-
<auro-menuoption value="cruises">
|
|
154
|
-
<auro-icon category="in-flight" name="boarding" customcolor></auro-icon> Cruises
|
|
155
|
-
<auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="in-flight" name="boarding" customcolor></auro-icon>
|
|
156
|
-
</auro-menuoption>
|
|
157
|
-
</auro-menu>
|
|
158
|
-
</auro-select>
|
|
159
|
-
<auro-select layout="emphasized" shape="pill" size="xl" value="flights" style="display:inline-block;">
|
|
160
|
-
<span slot="label">Select Example</span>
|
|
161
|
-
<auro-menu nocheckmark>
|
|
162
|
-
<auro-menuoption value="flights">
|
|
163
|
-
<auro-icon category="terminal" name="plane-diag-stroke" customcolor></auro-icon> Flights
|
|
164
|
-
<auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="terminal" name="plane-diag-fill" customcolor></auro-icon>
|
|
165
|
-
</auro-menuoption>
|
|
166
|
-
<auro-menuoption value="cars">
|
|
167
|
-
<auro-icon category="destination" name="car-rental-stroke" customcolor></auro-icon> Cars
|
|
168
|
-
<auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="destination" name="car-rental-stroke" customcolor></auro-icon>
|
|
169
|
-
</auro-menuoption>
|
|
170
|
-
<auro-menuoption value="hotels">
|
|
171
|
-
<auro-icon category="destination" name="hotel-stroke" customcolor></auro-icon> Hotels
|
|
172
|
-
<auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="destination" name="hotel-filled" customcolor></auro-icon>
|
|
173
|
-
</auro-menuoption>
|
|
174
|
-
<auro-menuoption value="packages">
|
|
175
|
-
<auro-icon category="shop" name="gift-stroke" customcolor></auro-icon> Packages
|
|
176
|
-
<auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="shop" name="gift-filled" customcolor></auro-icon>
|
|
177
|
-
</auro-menuoption>
|
|
178
|
-
<auro-menuoption value="cruises">
|
|
179
|
-
<auro-icon category="in-flight" name="boarding" customcolor></auro-icon> Cruises
|
|
180
|
-
<auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="in-flight" name="boarding" customcolor></auro-icon>
|
|
181
|
-
</auro-menuoption>
|
|
182
|
-
</auro-menu>
|
|
183
|
-
</auro-select>
|
|
184
|
-
<auro-select layout="emphasized" shape="pill" size="xl" value="flights" required style="display:inline-block;">
|
|
185
|
-
<span slot="label">Select Example</span>
|
|
186
|
-
<span slot="helpText">no displayValue in menuoptions</span>
|
|
187
|
-
<auro-menu nocheckmark>
|
|
188
|
-
<auro-menuoption value="flights">
|
|
189
|
-
<auro-icon category="terminal" name="plane-diag-stroke" customcolor></auro-icon> Flights
|
|
190
|
-
</auro-menuoption>
|
|
191
|
-
<auro-menuoption value="cars">
|
|
192
|
-
<auro-icon category="destination" name="car-rental-stroke" customcolor></auro-icon> Cars
|
|
193
|
-
</auro-menuoption>
|
|
194
|
-
<auro-menuoption value="hotels">
|
|
195
|
-
<auro-icon category="destination" name="hotel-stroke" customcolor></auro-icon> Hotels
|
|
196
|
-
</auro-menuoption>
|
|
197
|
-
<auro-menuoption value="packages">
|
|
198
|
-
<auro-icon category="shop" name="gift-stroke" customcolor></auro-icon> Packages
|
|
199
|
-
</auro-menuoption>
|
|
200
|
-
<auro-menuoption value="cruises">
|
|
201
|
-
<auro-icon category="in-flight" name="boarding" customcolor></auro-icon> Cruises
|
|
202
|
-
</auro-menuoption>
|
|
203
|
-
</auro-menu>
|
|
204
|
-
</auro-select>
|
|
205
|
-
</div>
|
|
206
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
56
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
|
|
57
|
+
<pre class="language-html"><code class="language-html"><auro-select>
|
|
58
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
59
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
60
|
+
<span slot="label">Select Example</span>
|
|
61
|
+
<auro-menu>
|
|
62
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
63
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
64
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
65
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
66
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
67
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
68
|
+
</auro-menu>
|
|
69
|
+
</auro-select></code></pre>
|
|
70
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
71
|
+
</auro-accordion>
|
|
72
|
+
<section>
|
|
73
|
+
<auro-header level="2" id="userStories">User Stories</auro-header>
|
|
74
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/index/userStories.md) -->
|
|
75
|
+
<!-- The below content is automatically added from ./../docs/partials/index/userStories.md -->
|
|
76
|
+
<auro-header level="3" id="select">Select an option from the list</auro-header>
|
|
77
|
+
<ol>
|
|
78
|
+
<li>
|
|
79
|
+
Move focus to the auro-select element
|
|
80
|
+
</li>
|
|
81
|
+
<li>
|
|
82
|
+
Activate the trigger (e.g. mouse click, tap or keyboard event)
|
|
83
|
+
<div class="note">
|
|
84
|
+
<p>
|
|
85
|
+
While in desktop view the list of options will render in a dropdown style bib that appears below the trigger. The bib may render above the trigger if there is not enough space in the viewport below the trigger.
|
|
86
|
+
</p>
|
|
87
|
+
<p>
|
|
88
|
+
While in mobile device view the list of options will appear in a fullscreen modal dialog. Focus will shift to the close button in the top right of this dialog.
|
|
89
|
+
</p>
|
|
207
90
|
</div>
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
</auro-menuoption>
|
|
252
|
-
<auro-menuoption value="hotels">
|
|
253
|
-
<auro-icon category="destination" name="hotel-stroke" customcolor></auro-icon> Hotels
|
|
254
|
-
<auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="destination" name="hotel-filled" customcolor></auro-icon>
|
|
255
|
-
</auro-menuoption>
|
|
256
|
-
<auro-menuoption value="packages">
|
|
257
|
-
<auro-icon category="shop" name="gift-stroke" customcolor></auro-icon> Packages
|
|
258
|
-
<auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="shop" name="gift-filled" customcolor></auro-icon>
|
|
259
|
-
</auro-menuoption>
|
|
260
|
-
<auro-menuoption value="cruises">
|
|
261
|
-
<auro-icon category="in-flight" name="boarding" customcolor></auro-icon> Cruises
|
|
262
|
-
<auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="in-flight" name="boarding" customcolor></auro-icon>
|
|
263
|
-
</auro-menuoption>
|
|
264
|
-
</auro-menu>
|
|
265
|
-
</auro-select>
|
|
266
|
-
<auro-select layout="emphasized" shape="pill" size="xl" value="flights" required style="display:inline-block;">
|
|
267
|
-
<span slot="label">Select Example</span>
|
|
268
|
-
<span slot="helpText">no displayValue in menuoptions</span>
|
|
269
|
-
<auro-menu nocheckmark>
|
|
270
|
-
<auro-menuoption value="flights">
|
|
271
|
-
<auro-icon category="terminal" name="plane-diag-stroke" customcolor></auro-icon> Flights
|
|
272
|
-
</auro-menuoption>
|
|
273
|
-
<auro-menuoption value="cars">
|
|
274
|
-
<auro-icon category="destination" name="car-rental-stroke" customcolor></auro-icon> Cars
|
|
275
|
-
</auro-menuoption>
|
|
276
|
-
<auro-menuoption value="hotels">
|
|
277
|
-
<auro-icon category="destination" name="hotel-stroke" customcolor></auro-icon> Hotels
|
|
278
|
-
</auro-menuoption>
|
|
279
|
-
<auro-menuoption value="packages">
|
|
280
|
-
<auro-icon category="shop" name="gift-stroke" customcolor></auro-icon> Packages
|
|
281
|
-
</auro-menuoption>
|
|
282
|
-
<auro-menuoption value="cruises">
|
|
283
|
-
<auro-icon category="in-flight" name="boarding" customcolor></auro-icon> Cruises
|
|
284
|
-
</auro-menuoption>
|
|
285
|
-
</auro-menu>
|
|
286
|
-
</auro-select>
|
|
287
|
-
</div>
|
|
288
|
-
```
|
|
289
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
290
|
-
</auro-accordion>
|
|
291
|
-
|
|
292
|
-
#### Snowflake Layout
|
|
293
|
-
|
|
294
|
-
The `snowflake` layout is a unique, one off layout that does not follow the normal pattern. There is only one way to use snowflake as shown in the following example.
|
|
295
|
-
|
|
296
|
-
The `snowflake` layout is only expected to be used on dark backgrounds, in conjunction with `appearance="inverse"`.
|
|
297
|
-
|
|
298
|
-
<div class="exampleWrapper--ondark">
|
|
299
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/snowflake/basic.html) -->
|
|
300
|
-
<!-- The below content is automatically added from ./../apiExamples/snowflake/basic.html -->
|
|
301
|
-
<auro-select layout="snowflake" shape="snowflake" appearance="inverse" required style="width:300px;">
|
|
302
|
-
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
303
|
-
<span slot="label">Label</span>
|
|
304
|
-
<span slot="helpText">Help Text</span>
|
|
305
|
-
<auro-menu nocheckmark>
|
|
306
|
-
<auro-menuoption value="flights">
|
|
307
|
-
<auro-icon category="terminal" name="plane-diag-stroke" customColor></auro-icon> Flights
|
|
308
|
-
</auro-menuoption>
|
|
309
|
-
<auro-menuoption value="cars">
|
|
310
|
-
<auro-icon category="destination" name="car-rental-stroke" customColor></auro-icon> Cars
|
|
311
|
-
</auro-menuoption>
|
|
312
|
-
<auro-menuoption value="hotels">
|
|
313
|
-
<auro-icon category="destination" name="hotel-stroke" customColor></auro-icon> Hotels
|
|
314
|
-
</auro-menuoption>
|
|
315
|
-
<auro-menuoption value="packages">
|
|
316
|
-
<auro-icon category="shop" name="gift-stroke" customColor></auro-icon> Packages
|
|
317
|
-
</auro-menuoption>
|
|
318
|
-
<auro-menuoption value="cruises">
|
|
319
|
-
<auro-icon category="in-flight" name="boarding" customColor></auro-icon> Cruises
|
|
320
|
-
</auro-menuoption>
|
|
321
|
-
</auro-menu>
|
|
322
|
-
</auro-select>
|
|
323
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
91
|
+
</li>
|
|
92
|
+
<li>
|
|
93
|
+
Choose an option
|
|
94
|
+
<div class="note">
|
|
95
|
+
<p>
|
|
96
|
+
The guest may navigate through the list of options to make their choice. An option may become active through pointer hover, keyboard navigation (e.g., arrow keys), or assistive technologies that emulate keyboard navigation through gestures.
|
|
97
|
+
</p>
|
|
98
|
+
</div>
|
|
99
|
+
</li>
|
|
100
|
+
<li>
|
|
101
|
+
Select the option
|
|
102
|
+
<div class="note">
|
|
103
|
+
<p>
|
|
104
|
+
Any previously selected option will be un-selected. The current active option may be selected through click, tap or keyboard events (e.g. <code>Enter</code> or <code>Tab</code> while focus is within the component).
|
|
105
|
+
</p>
|
|
106
|
+
</div>
|
|
107
|
+
</li>
|
|
108
|
+
</ol>
|
|
109
|
+
<auro-header level="3" id="presetValue">Preset the value</auro-header>
|
|
110
|
+
<p>In some cases it is necessary to preset the value of the component as part of the initial render.</p>
|
|
111
|
+
<auro-header level="4" id="us3a">Single Select</auro-header>
|
|
112
|
+
<p>When a value is preset, the matching option in the menu will be marked as both <code>active</code> and <code>selected</code>.</p>
|
|
113
|
+
<p>If a preset value is defined that does not match any enabled option, the value is reset to <code>undefined</code>.</p>
|
|
114
|
+
<auro-header level="4" id="us3b">Multi Select</auro-header>
|
|
115
|
+
<p>When configured for multi-select, the preset value may include multiple options. The first selected option will also be marked <code>active</code>.</p>
|
|
116
|
+
<p>If one or more preset values do not match any option they will be discarded. If no preset values match any option, the value is reset to <code>undefined</code>.</p>
|
|
117
|
+
<div class="note"><strong>Important caveat:</strong> Multi-select is notoriously difficult for all users, including screen reader users — WCAG and usability research generally recommend avoiding <code><auro-select multiSelect></code> in favor of checkboxes or other patterns that make multi-selection more discoverable.</div>
|
|
118
|
+
<auro-header level="3" id="multiselect">Multi-select</auro-header>
|
|
119
|
+
<p>In certain cases it may be valid to allow more than one option to be selected. When the component is configured to support multi-select only one option is still able to be marked <code>active</code>. However, multiple options may be <code>selected</code> via click, tap or keyboard events on each option. A second click, tap or keyboard event on an already selected option will de-select it.</p>
|
|
120
|
+
<div class="exampleWrapper">
|
|
121
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/multi-select.html) -->
|
|
122
|
+
<!-- The below content is automatically added from ./../apiExamples/multi-select.html -->
|
|
123
|
+
<auro-select multiselect>
|
|
124
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
125
|
+
<label slot="placeholder">Select one or more options</label>
|
|
126
|
+
<span slot="label">multiselect select example</span>
|
|
127
|
+
<auro-menu>
|
|
128
|
+
<auro-menuoption value="1">Option 1</auro-menuoption>
|
|
129
|
+
<auro-menuoption value="2">Option 2</auro-menuoption>
|
|
130
|
+
<auro-menuoption value="3">Option 3</auro-menuoption>
|
|
131
|
+
</auro-menu>
|
|
132
|
+
</auro-select>
|
|
133
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
324
134
|
</div>
|
|
325
135
|
<auro-accordion alignRight>
|
|
326
|
-
|
|
327
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/
|
|
328
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
<auro-icon category="destination" name="car-rental-stroke" customColor></auro-icon> Cars
|
|
341
|
-
</auro-menuoption>
|
|
342
|
-
<auro-menuoption value="hotels">
|
|
343
|
-
<auro-icon category="destination" name="hotel-stroke" customColor></auro-icon> Hotels
|
|
344
|
-
</auro-menuoption>
|
|
345
|
-
<auro-menuoption value="packages">
|
|
346
|
-
<auro-icon category="shop" name="gift-stroke" customColor></auro-icon> Packages
|
|
347
|
-
</auro-menuoption>
|
|
348
|
-
<auro-menuoption value="cruises">
|
|
349
|
-
<auro-icon category="in-flight" name="boarding" customColor></auro-icon> Cruises
|
|
350
|
-
</auro-menuoption>
|
|
351
|
-
</auro-menu>
|
|
352
|
-
</auro-select>
|
|
353
|
-
```
|
|
354
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
136
|
+
<span slot="trigger">See code</span>
|
|
137
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/multi-select.html) -->
|
|
138
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/multi-select.html -->
|
|
139
|
+
<pre class="language-html"><code class="language-html"><auro-select multiselect>
|
|
140
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
141
|
+
<label slot="placeholder">Select one or more options</label>
|
|
142
|
+
<span slot="label">multiselect select example</span>
|
|
143
|
+
<auro-menu>
|
|
144
|
+
<auro-menuoption value="1">Option 1</auro-menuoption>
|
|
145
|
+
<auro-menuoption value="2">Option 2</auro-menuoption>
|
|
146
|
+
<auro-menuoption value="3">Option 3</auro-menuoption>
|
|
147
|
+
</auro-menu>
|
|
148
|
+
</auro-select></code></pre>
|
|
149
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
355
150
|
</auro-accordion>
|
|
151
|
+
<auro-header level="3" id="autocomplete">Autocomplete</auro-header>
|
|
152
|
+
<p>The component supports the use of <auro-hyperlink href="https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/autocomplete">autocomplete</auro-hyperlink> configuration through HTML attributes.</p>
|
|
153
|
+
<auro-header level="3" id="skipSelection">Close the list of options without making a selection</auro-header>
|
|
154
|
+
<ol>
|
|
155
|
+
<li>Move focus to the auro-select element</li>
|
|
156
|
+
<li>Activate the trigger (e.g. mouse click, tap or keyboard event)</li>
|
|
157
|
+
<li>Navigate the list of options but do not make a selection</li>
|
|
158
|
+
<li>Collapse the bib
|
|
159
|
+
<div class="note">
|
|
160
|
+
<p>The guest may collapse the bib without making any selection. Example methods include clicking or tapping outside of the component or hitting the <code>Escape</code> key.</p>
|
|
161
|
+
</div>
|
|
162
|
+
</li>
|
|
163
|
+
</ol>
|
|
164
|
+
<auro-header level="3" id="viewport">Change Viewport Size</auro-header>
|
|
165
|
+
<p>The guest may change the size of their viewport (e.g. resize their desktop browser window, rotate their mobile device). In some cases, this may cause a re-render of the component while the option list is expanded. It is possible that the viewport size change will cause the option list to change from a popover bib to a fullscreen modal or vice versa while the bib is open.</p>
|
|
166
|
+
<auro-header level="4" id="us9a">Popover to Modal</auro-header>
|
|
167
|
+
<p>While in a popover display state with the bib open, focus will be on the trigger. After switching to the fullscreen modal dialog, focus will move to the close button inside the dialog.</p>
|
|
168
|
+
<auro-header level="4" id="us9b">Modal to Popover</auro-header>
|
|
169
|
+
<p>While in a fullscreen modal display state with the bib open, focus will be on the close button inside the dialog. After switching to the fullscreen modal dialog, focus will move to the trigger.</p>
|
|
170
|
+
</section>
|
|
171
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
172
|
+
</section>
|
|
173
|
+
</div>
|
|
174
|
+
</div>
|
|
175
|
+
</div>
|