@aurodesignsystem/auro-formkit 5.9.0 → 5.9.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/CHANGELOG.md +13 -4
- package/README.md +4 -4
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +2 -2
- package/components/bibtemplate/dist/registered.js +2 -2
- package/components/checkbox/README.md +62 -62
- package/components/checkbox/demo/api.js +1 -1
- package/components/checkbox/demo/api.md +127 -84
- package/components/checkbox/demo/api.min.js +125 -42
- package/components/checkbox/demo/index.md +9 -281
- package/components/checkbox/demo/index.min.js +125 -42
- package/components/checkbox/demo/readme.html +3 -4
- package/components/checkbox/demo/readme.md +62 -62
- package/components/checkbox/dist/auro-checkbox-group.d.ts +7 -8
- package/components/checkbox/dist/auro-checkbox.d.ts +74 -20
- package/components/checkbox/dist/index.js +125 -42
- package/components/checkbox/dist/registered.js +125 -42
- package/components/combobox/README.md +76 -74
- package/components/combobox/demo/api.html +1 -0
- package/components/combobox/demo/api.js +11 -12
- package/components/combobox/demo/api.md +1302 -875
- package/components/combobox/demo/api.min.js +416 -492
- package/components/combobox/demo/index.html +1 -7
- package/components/combobox/demo/index.js +0 -19
- package/components/combobox/demo/index.md +43 -723
- package/components/combobox/demo/index.min.js +369 -302
- package/components/combobox/demo/readme.html +3 -4
- package/components/combobox/demo/readme.md +76 -74
- package/components/combobox/dist/auro-combobox.d.ts +42 -42
- package/components/combobox/dist/index.js +204 -210
- package/components/combobox/dist/registered.js +204 -210
- package/components/counter/README.md +81 -66
- package/components/counter/demo/api.html +1 -2
- package/components/counter/demo/api.js +2 -2
- package/components/counter/demo/api.md +777 -259
- package/components/counter/demo/api.min.js +119 -171
- package/components/counter/demo/index.html +0 -2
- package/components/counter/demo/index.md +20 -329
- package/components/counter/demo/index.min.js +117 -152
- package/components/counter/demo/readme.html +3 -4
- package/components/counter/demo/readme.md +81 -66
- package/components/counter/dist/auro-counter-group.d.ts +21 -36
- package/components/counter/dist/auro-counter-wrapper.d.ts +1 -6
- package/components/counter/dist/auro-counter.d.ts +5 -8
- package/components/counter/dist/index.js +117 -152
- package/components/counter/dist/registered.js +117 -152
- package/components/datepicker/README.md +57 -61
- package/components/datepicker/demo/api.js +8 -8
- package/components/datepicker/demo/api.md +720 -561
- package/components/datepicker/demo/api.min.js +678 -2769
- package/components/datepicker/demo/index.md +65 -117
- package/components/datepicker/demo/index.min.js +678 -2769
- package/components/datepicker/demo/readme.html +3 -4
- package/components/datepicker/demo/readme.md +57 -61
- package/components/datepicker/dist/auro-calendar.d.ts +60 -34
- package/components/datepicker/dist/auro-datepicker.d.ts +32 -32
- package/components/datepicker/dist/iconVersion.d.ts +1 -1
- package/components/datepicker/dist/index.js +505 -2596
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/dist/registered.js +505 -2596
- package/components/dropdown/README.md +78 -62
- package/components/dropdown/demo/api.js +4 -4
- package/components/dropdown/demo/api.md +520 -478
- package/components/dropdown/demo/api.min.js +80 -95
- package/components/dropdown/demo/index.md +65 -119
- package/components/dropdown/demo/index.min.js +70 -85
- package/components/dropdown/demo/readme.html +3 -4
- package/components/dropdown/demo/readme.md +78 -62
- package/components/dropdown/dist/auro-dropdown.d.ts +42 -33
- package/components/dropdown/dist/iconVersion.d.ts +1 -1
- package/components/dropdown/dist/index.js +70 -85
- package/components/dropdown/dist/registered.js +70 -85
- package/components/form/README.md +16 -58
- package/components/form/demo/api.md +16 -21
- package/components/form/demo/api.min.js +13 -8
- package/components/form/demo/index.md +38 -39
- package/components/form/demo/index.min.js +13 -8
- package/components/form/demo/readme.md +16 -58
- package/components/form/demo/working.html +1 -1
- package/components/form/dist/auro-form.d.ts +15 -3
- package/components/form/dist/index.js +13 -8
- package/components/form/dist/registered.js +13 -8
- package/components/input/README.md +55 -60
- package/components/input/demo/api.js +3 -5
- package/components/input/demo/api.md +558 -537
- package/components/input/demo/api.min.js +102 -115
- package/components/input/demo/index.js +0 -1
- package/components/input/demo/index.md +90 -203
- package/components/input/demo/index.min.js +87 -99
- package/components/input/demo/readme.html +3 -4
- package/components/input/demo/readme.md +55 -60
- package/components/input/dist/auro-input.d.ts +6 -5
- package/components/input/dist/base-input.d.ts +68 -69
- package/components/input/dist/iconVersion.d.ts +1 -1
- package/components/input/dist/index.js +87 -82
- package/components/input/dist/registered.js +87 -82
- package/components/menu/README.md +61 -61
- package/components/menu/demo/api.js +6 -8
- package/components/menu/demo/api.md +520 -577
- package/components/menu/demo/api.min.js +199 -97
- package/components/menu/demo/index.js +0 -5
- package/components/menu/demo/index.md +36 -119
- package/components/menu/demo/index.min.js +164 -101
- package/components/menu/demo/readme.html +3 -4
- package/components/menu/demo/readme.md +61 -61
- package/components/menu/dist/auro-menu.context.d.ts +5 -0
- package/components/menu/dist/auro-menu.d.ts +75 -37
- package/components/menu/dist/auro-menuoption.d.ts +38 -13
- package/components/menu/dist/index.js +164 -50
- package/components/menu/dist/registered.js +164 -50
- package/components/radio/README.md +61 -57
- package/components/radio/demo/api.js +2 -2
- package/components/radio/demo/api.md +241 -170
- package/components/radio/demo/api.min.js +154 -77
- package/components/radio/demo/index.md +22 -99
- package/components/radio/demo/index.min.js +145 -68
- package/components/radio/demo/readme.html +3 -4
- package/components/radio/demo/readme.md +61 -57
- package/components/radio/dist/auro-radio-group.d.ts +67 -35
- package/components/radio/dist/auro-radio.d.ts +56 -33
- package/components/radio/dist/index.js +145 -68
- package/components/radio/dist/registered.js +145 -68
- package/components/select/README.md +68 -65
- package/components/select/demo/api.html +1 -0
- package/components/select/demo/api.js +7 -7
- package/components/select/demo/api.md +1305 -625
- package/components/select/demo/api.min.js +357 -262
- package/components/select/demo/index.html +0 -2
- package/components/select/demo/index.md +25 -833
- package/components/select/demo/index.min.js +356 -230
- package/components/select/demo/readme.html +3 -4
- package/components/select/demo/readme.md +68 -65
- package/components/select/dist/auro-select.d.ts +99 -90
- package/components/select/dist/index.js +192 -180
- package/components/select/dist/registered.js +192 -180
- package/package.json +9 -4
|
@@ -1,39 +1,41 @@
|
|
|
1
1
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/api.md) -->
|
|
2
2
|
<!-- The below content is automatically added from ./../docs/api.md -->
|
|
3
3
|
|
|
4
|
-
# auro-dropdown
|
|
4
|
+
# auro-dropdown
|
|
5
|
+
|
|
6
|
+
The `auro-dropdown` element provides a way to place content in a bib that can be toggled.
|
|
5
7
|
|
|
6
8
|
## Properties
|
|
7
9
|
|
|
8
|
-
| Property | Attribute | Type
|
|
9
|
-
|
|
10
|
-
| `a11yRole` | |
|
|
11
|
-
| [appearance](#appearance) | `appearance` | `
|
|
12
|
-
| [autoPlacement](#autoPlacement) | `autoPlacement` | `boolean`
|
|
13
|
-
| [chevron](#chevron) | `chevron` | `
|
|
14
|
-
| [disableEventShow](#disableEventShow) | `disableEventShow` | `
|
|
15
|
-
| [disableFocusTrap](#disableFocusTrap) | `disableFocusTrap` | `boolean`
|
|
16
|
-
| [disabled](#disabled) | `disabled` | `
|
|
17
|
-
| [error](#error) | `error` | `
|
|
18
|
-
| [errorMessage](#errorMessage) | `errorMessage` | `string`
|
|
19
|
-
| [focusShow](#focusShow) | `focusShow` | `
|
|
20
|
-
| [fullscreenBreakpoint](#fullscreenBreakpoint) | `fullscreenBreakpoint` | `
|
|
21
|
-
| [hoverToggle](#hoverToggle) | `hoverToggle` | `
|
|
22
|
-
| [isBibFullscreen](#isBibFullscreen) | `isBibFullscreen` | `boolean`
|
|
23
|
-
| [isPopoverVisible](#isPopoverVisible) | `open` | `
|
|
24
|
-
| [layout](#layout) |
|
|
25
|
-
| [matchWidth](#matchWidth) | `matchWidth` | `
|
|
26
|
-
| [noFlip](#noFlip) | `noFlip` | `boolean`
|
|
27
|
-
| [noHideOnThisFocusLoss](#noHideOnThisFocusLoss) | `noHideOnThisFocusLoss` | `
|
|
28
|
-
| [noToggle](#noToggle) | `noToggle` | `
|
|
29
|
-
| [offset](#offset) | `offset` | `number`
|
|
30
|
-
| [onDark](#onDark) | `onDark` | `boolean`
|
|
31
|
-
| [onSlotChange](#onSlotChange) | `onSlotChange` |
|
|
32
|
-
| [placement](#placement) | `placement` | `
|
|
33
|
-
| [shape](#shape) | |
|
|
34
|
-
| [shift](#shift) | `shift` | `boolean`
|
|
35
|
-
| [simple](#simple) | `simple` | `boolean`
|
|
36
|
-
| [size](#size) | |
|
|
10
|
+
| Property | Attribute | Type | Default | Description |
|
|
11
|
+
|-------------------------|-------------------------|--------------------------------------------------|------------------|--------------------------------------------------|
|
|
12
|
+
| `a11yRole` | | | | The value for the role attribute of the trigger element. |
|
|
13
|
+
| [appearance](#appearance) | `appearance` | `'default' \| 'inverse'` | "'default'" | Defines whether the component will be on lighter or darker backgrounds. |
|
|
14
|
+
| [autoPlacement](#autoPlacement) | `autoPlacement` | `boolean` | | If declared, bib's position will be automatically calculated where to appear. |
|
|
15
|
+
| [chevron](#chevron) | `chevron` | `boolean` | | If declared, the dropdown displays a chevron on the right. |
|
|
16
|
+
| [disableEventShow](#disableEventShow) | `disableEventShow` | `boolean` | | If declared, the dropdown will only show by calling the API .show() public method. |
|
|
17
|
+
| [disableFocusTrap](#disableFocusTrap) | `disableFocusTrap` | `boolean` | | If declared, the focus trap inside of bib will be turned off. |
|
|
18
|
+
| [disabled](#disabled) | `disabled` | `boolean` | | If declared, the dropdown is not interactive. |
|
|
19
|
+
| [error](#error) | `error` | `boolean` | | If declared, will apply error UI to the dropdown. |
|
|
20
|
+
| [errorMessage](#errorMessage) | `errorMessage` | `string` | "undefined" | Contains the help text message for the current validity error. |
|
|
21
|
+
| [focusShow](#focusShow) | `focusShow` | `boolean` | | If declared, the bib will display when focus is applied to the trigger. |
|
|
22
|
+
| [fullscreenBreakpoint](#fullscreenBreakpoint) | `fullscreenBreakpoint` | `'xs' \| 'sm' \| 'md' \| 'lg' \| 'xl' \| 'disabled'` | "'sm'" | Defines the screen size breakpoint at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.<br /><br />When expanded, the dropdown will automatically display in fullscreen mode<br />if the screen size is equal to or smaller than the selected breakpoint. |
|
|
23
|
+
| [hoverToggle](#hoverToggle) | `hoverToggle` | `boolean` | | If declared, the trigger will toggle the dropdown on mouseover/mouseout. |
|
|
24
|
+
| [isBibFullscreen](#isBibFullscreen) | `isBibFullscreen` | `boolean` | false | If true, the dropdown bib is taking the fullscreen when it's open. |
|
|
25
|
+
| [isPopoverVisible](#isPopoverVisible) | `open` | `boolean` | false | If true, the dropdown bib is displayed. |
|
|
26
|
+
| [layout](#layout) | `layout` | `'classic' \| 'emphasized' \| 'snowflake'` | "'classic'" | Sets the layout of the dropdown. |
|
|
27
|
+
| [matchWidth](#matchWidth) | `matchWidth` | `boolean` | false | If declared, the popover and trigger will be set to the same width. |
|
|
28
|
+
| [noFlip](#noFlip) | `noFlip` | `boolean` | | If declared, the bib will NOT flip to an alternate position<br />when there isn't enough space in the specified `placement`. |
|
|
29
|
+
| [noHideOnThisFocusLoss](#noHideOnThisFocusLoss) | `noHideOnThisFocusLoss` | `boolean` | false | If declared, the dropdown will not hide when moving focus outside the element. |
|
|
30
|
+
| [noToggle](#noToggle) | `noToggle` | `boolean` | | If declared, the trigger will only show the dropdown bib. |
|
|
31
|
+
| [offset](#offset) | `offset` | `number` | "0" | Gap between the trigger element and bib. |
|
|
32
|
+
| [onDark](#onDark) | `onDark` | `boolean` | | DEPRECATED - use `appearance="inverse"` instead. |
|
|
33
|
+
| [onSlotChange](#onSlotChange) | `onSlotChange` | | | If declared, and a function is set, that function will execute when the slot content is updated. |
|
|
34
|
+
| [placement](#placement) | `placement` | `'top' \| 'right' \| 'bottom' \| 'left' \| 'bottom-start' \| 'top-start' \| 'top-end' \| 'right-start' \| 'right-end' \| 'bottom-end' \| 'left-start' \| 'left-end'` | "'bottom-start'" | Position where the bib should appear relative to the trigger. |
|
|
35
|
+
| [shape](#shape) | | | "undefined" | |
|
|
36
|
+
| [shift](#shift) | `shift` | `boolean` | | If declared, the dropdown will shift its position to avoid being cut off by the viewport. |
|
|
37
|
+
| [simple](#simple) | `simple` | `boolean` | | If declared, applies a border around the trigger slot. |
|
|
38
|
+
| [size](#size) | | | "undefined" | |
|
|
37
39
|
|
|
38
40
|
## Methods
|
|
39
41
|
|
|
@@ -48,7 +50,7 @@
|
|
|
48
50
|
|
|
49
51
|
| Event | Type | Description |
|
|
50
52
|
|-----------------------------|--------------------------------------|--------------------------------------------------|
|
|
51
|
-
| `auroDropdown-idAdded` | `Object<key : 'id', value: string>` |
|
|
53
|
+
| `auroDropdown-idAdded` | `Object<key : 'id', value: string>` | Notifies consumers that the unique ID for the dropdown bib has been generated. |
|
|
52
54
|
| `auroDropdown-toggled` | | Notifies that the visibility of the dropdown bib has changed. |
|
|
53
55
|
| `auroDropdown-triggerClick` | `CustomEvent<any>` | Notifies that the trigger has been clicked. |
|
|
54
56
|
|
|
@@ -66,18 +68,15 @@
|
|
|
66
68
|
|------------|--------------------------------------------------|
|
|
67
69
|
| [chevron](#chevron) | The collapsed/expanded state icon container. |
|
|
68
70
|
| [helpText](#helpText) | The helpText content container. |
|
|
69
|
-
| [popover](#popover) | The bib content container. |
|
|
70
71
|
| [size](#size) | The size of the dropdown bib. (height, width, maxHeight, maxWidth only) |
|
|
71
72
|
| [trigger](#trigger) | The trigger content container. |
|
|
72
73
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
73
74
|
|
|
74
|
-
##
|
|
75
|
-
|
|
76
|
-
### Basic
|
|
75
|
+
## Basic
|
|
77
76
|
|
|
78
|
-
The
|
|
77
|
+
The following examples demonstrate basic usage of the `auro-dropdown` component with different types of trigger content.
|
|
79
78
|
|
|
80
|
-
|
|
79
|
+
### Text
|
|
81
80
|
|
|
82
81
|
<div class="exampleWrapper">
|
|
83
82
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
@@ -90,17 +89,6 @@ The most basic, simple version of `auro-dropdown`.
|
|
|
90
89
|
</auro-dropdown>
|
|
91
90
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
92
91
|
</div>
|
|
93
|
-
<div class="exampleWrapper--ondark" aria-hidden>
|
|
94
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearance.html) -->
|
|
95
|
-
<!-- The below content is automatically added from ./../apiExamples/inverseAppearance.html -->
|
|
96
|
-
<auro-dropdown appearance="inverse" aria-label="custom label">
|
|
97
|
-
Lorem ipsum solar
|
|
98
|
-
<div slot="trigger">
|
|
99
|
-
Trigger
|
|
100
|
-
</div>
|
|
101
|
-
</auro-dropdown>
|
|
102
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
103
|
-
</div>
|
|
104
92
|
<auro-accordion alignRight>
|
|
105
93
|
<span slot="trigger">See code</span>
|
|
106
94
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
|
|
@@ -115,8 +103,8 @@ The most basic, simple version of `auro-dropdown`.
|
|
|
115
103
|
</auro-dropdown>
|
|
116
104
|
```
|
|
117
105
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
118
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/
|
|
119
|
-
<!-- The below content is automatically added from ./../apiExamples/
|
|
106
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse.html) -->
|
|
107
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse.html -->
|
|
120
108
|
<auro-dropdown appearance="inverse" aria-label="custom label">
|
|
121
109
|
Lorem ipsum solar
|
|
122
110
|
<div slot="trigger">
|
|
@@ -126,11 +114,11 @@ The most basic, simple version of `auro-dropdown`.
|
|
|
126
114
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
127
115
|
</auro-accordion>
|
|
128
116
|
|
|
129
|
-
|
|
117
|
+
### Icon
|
|
130
118
|
|
|
131
119
|
<div class="exampleWrapper">
|
|
132
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/
|
|
133
|
-
<!-- The below content is automatically added from ./../apiExamples/
|
|
120
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic-icon.html) -->
|
|
121
|
+
<!-- The below content is automatically added from ./../apiExamples/basic-icon.html -->
|
|
134
122
|
<auro-dropdown aria-label="custom label">
|
|
135
123
|
Lorem ipsum solar
|
|
136
124
|
<div slot="trigger">
|
|
@@ -143,8 +131,8 @@ The most basic, simple version of `auro-dropdown`.
|
|
|
143
131
|
</div>
|
|
144
132
|
<auro-accordion alignRight>
|
|
145
133
|
<span slot="trigger">See code</span>
|
|
146
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/
|
|
147
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/
|
|
134
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic-icon.html) -->
|
|
135
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/basic-icon.html -->
|
|
148
136
|
|
|
149
137
|
```html
|
|
150
138
|
<auro-dropdown aria-label="custom label">
|
|
@@ -158,9 +146,12 @@ The most basic, simple version of `auro-dropdown`.
|
|
|
158
146
|
```
|
|
159
147
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
160
148
|
</auro-accordion>
|
|
149
|
+
|
|
150
|
+
### Button
|
|
151
|
+
|
|
161
152
|
<div class="exampleWrapper">
|
|
162
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/
|
|
163
|
-
<!-- The below content is automatically added from ./../apiExamples/
|
|
153
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic-button.html) -->
|
|
154
|
+
<!-- The below content is automatically added from ./../apiExamples/basic-button.html -->
|
|
164
155
|
<auro-dropdown aria-label="custom label">
|
|
165
156
|
Lorem ipsum solar
|
|
166
157
|
<div slot="trigger">
|
|
@@ -173,8 +164,8 @@ The most basic, simple version of `auro-dropdown`.
|
|
|
173
164
|
</div>
|
|
174
165
|
<auro-accordion alignRight>
|
|
175
166
|
<span slot="trigger">See code</span>
|
|
176
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/
|
|
177
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/
|
|
167
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic-button.html) -->
|
|
168
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/basic-button.html -->
|
|
178
169
|
|
|
179
170
|
```html
|
|
180
171
|
<auro-dropdown aria-label="custom label">
|
|
@@ -189,41 +180,30 @@ The most basic, simple version of `auro-dropdown`.
|
|
|
189
180
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
190
181
|
</auro-accordion>
|
|
191
182
|
|
|
192
|
-
|
|
183
|
+
## Property & Attribute Examples
|
|
193
184
|
|
|
194
|
-
|
|
185
|
+
### Appearance on Dark Backgrounds
|
|
195
186
|
|
|
196
|
-
|
|
187
|
+
Use the `appearance="inverse"` attribute to ensure proper styling when the dropdown is used on dark backgrounds.
|
|
197
188
|
|
|
198
189
|
<div class="exampleWrapper">
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
</div>
|
|
209
|
-
<div class="exampleWrapper--ondark" aria-hidden>
|
|
210
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearanceBordered.html) -->
|
|
211
|
-
<!-- The below content is automatically added from ./../apiExamples/inverseAppearanceBordered.html -->
|
|
212
|
-
<auro-dropdown appearance="inverse" aria-label="custom label" layout="classic" shape="classic" size="lg">
|
|
213
|
-
Lorem ipsum solar
|
|
214
|
-
<div slot="trigger">
|
|
215
|
-
Trigger
|
|
216
|
-
</div>
|
|
217
|
-
</auro-dropdown>
|
|
218
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
190
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse.html) -->
|
|
191
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse.html -->
|
|
192
|
+
<auro-dropdown appearance="inverse" aria-label="custom label">
|
|
193
|
+
Lorem ipsum solar
|
|
194
|
+
<div slot="trigger">
|
|
195
|
+
Trigger
|
|
196
|
+
</div>
|
|
197
|
+
</auro-dropdown>
|
|
198
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
219
199
|
</div>
|
|
220
200
|
<auro-accordion alignRight>
|
|
221
201
|
<span slot="trigger">See code</span>
|
|
222
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/
|
|
223
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/
|
|
202
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/appearance-inverse.html) -->
|
|
203
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/appearance-inverse.html -->
|
|
224
204
|
|
|
225
205
|
```html
|
|
226
|
-
<auro-dropdown aria-label="custom label"
|
|
206
|
+
<auro-dropdown appearance="inverse" aria-label="custom label">
|
|
227
207
|
Lorem ipsum solar
|
|
228
208
|
<div slot="trigger">
|
|
229
209
|
Trigger
|
|
@@ -231,20 +211,22 @@ Adds the border style around the dropdown trigger.
|
|
|
231
211
|
</auro-dropdown>
|
|
232
212
|
```
|
|
233
213
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
234
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearanceBordered.html) -->
|
|
235
|
-
<!-- The below content is automatically added from ./../apiExamples/inverseAppearanceBordered.html -->
|
|
236
|
-
<auro-dropdown appearance="inverse" aria-label="custom label" layout="classic" shape="classic" size="lg">
|
|
237
|
-
Lorem ipsum solar
|
|
238
|
-
<div slot="trigger">
|
|
239
|
-
Trigger
|
|
240
|
-
</div>
|
|
241
|
-
</auro-dropdown>
|
|
242
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
243
214
|
</auro-accordion>
|
|
215
|
+
<div class="exampleWrapper--ondark" aria-hidden>
|
|
216
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse.html) -->
|
|
217
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse.html -->
|
|
218
|
+
<auro-dropdown appearance="inverse" aria-label="custom label">
|
|
219
|
+
Lorem ipsum solar
|
|
220
|
+
<div slot="trigger">
|
|
221
|
+
Trigger
|
|
222
|
+
</div>
|
|
223
|
+
</auro-dropdown>
|
|
224
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
225
|
+
</div>
|
|
244
226
|
|
|
245
|
-
|
|
227
|
+
### Chevron
|
|
246
228
|
|
|
247
|
-
|
|
229
|
+
Use the `chevron` attribute to add a chevron icon to the dropdown trigger.
|
|
248
230
|
|
|
249
231
|
<div class="exampleWrapper">
|
|
250
232
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/chevron.html) -->
|
|
@@ -272,102 +254,10 @@ Adds the bib visibility state chevron to the right side of the trigger content.
|
|
|
272
254
|
```
|
|
273
255
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
274
256
|
</auro-accordion>
|
|
275
|
-
<div class="exampleWrapper">
|
|
276
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/chevronIcon.html) -->
|
|
277
|
-
<!-- The below content is automatically added from ./../apiExamples/chevronIcon.html -->
|
|
278
|
-
<auro-dropdown aria-label="custom label" chevron>
|
|
279
|
-
Lorem ipsum solar
|
|
280
|
-
<div slot="trigger">
|
|
281
|
-
<auro-icon
|
|
282
|
-
category="interface"
|
|
283
|
-
name="arrow-down"></auro-icon>
|
|
284
|
-
</div>
|
|
285
|
-
</auro-dropdown>
|
|
286
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
287
|
-
</div>
|
|
288
|
-
<auro-accordion alignRight>
|
|
289
|
-
<span slot="trigger">See code</span>
|
|
290
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/chevronIcon.html) -->
|
|
291
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/chevronIcon.html -->
|
|
292
|
-
|
|
293
|
-
```html
|
|
294
|
-
<auro-dropdown aria-label="custom label" chevron>
|
|
295
|
-
Lorem ipsum solar
|
|
296
|
-
<div slot="trigger">
|
|
297
|
-
<auro-icon
|
|
298
|
-
category="interface"
|
|
299
|
-
name="arrow-down"></auro-icon>
|
|
300
|
-
</div>
|
|
301
|
-
</auro-dropdown>
|
|
302
|
-
```
|
|
303
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
304
|
-
</auro-accordion>
|
|
305
|
-
<div class="exampleWrapper">
|
|
306
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/chevronButton.html) -->
|
|
307
|
-
<!-- The below content is automatically added from ./../apiExamples/chevronButton.html -->
|
|
308
|
-
<auro-dropdown aria-label="custom label" chevron>
|
|
309
|
-
Lorem ipsum solar
|
|
310
|
-
<div slot="trigger">
|
|
311
|
-
<auro-button slot="trigger">
|
|
312
|
-
Dropdown
|
|
313
|
-
</auro-button>
|
|
314
|
-
</div>
|
|
315
|
-
</auro-dropdown>
|
|
316
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
317
|
-
</div>
|
|
318
|
-
<auro-accordion alignRight>
|
|
319
|
-
<span slot="trigger">See code</span>
|
|
320
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/chevronButton.html) -->
|
|
321
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/chevronButton.html -->
|
|
322
|
-
|
|
323
|
-
```html
|
|
324
|
-
<auro-dropdown aria-label="custom label" chevron>
|
|
325
|
-
Lorem ipsum solar
|
|
326
|
-
<div slot="trigger">
|
|
327
|
-
<auro-button slot="trigger">
|
|
328
|
-
Dropdown
|
|
329
|
-
</auro-button>
|
|
330
|
-
</div>
|
|
331
|
-
</auro-dropdown>
|
|
332
|
-
```
|
|
333
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
334
|
-
</auro-accordion>
|
|
335
|
-
<div class="exampleWrapper">
|
|
336
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/chevronInput.html) -->
|
|
337
|
-
<!-- The below content is automatically added from ./../apiExamples/chevronInput.html -->
|
|
338
|
-
<auro-dropdown aria-label="custom label" chevron>
|
|
339
|
-
Lorem ipsum solar
|
|
340
|
-
<div slot="trigger">
|
|
341
|
-
<auro-input
|
|
342
|
-
slot="trigger"
|
|
343
|
-
id="inputExampleTrigger">
|
|
344
|
-
</auro-input>
|
|
345
|
-
</div>
|
|
346
|
-
</auro-dropdown>
|
|
347
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
348
|
-
</div>
|
|
349
|
-
<auro-accordion alignRight>
|
|
350
|
-
<span slot="trigger">See code</span>
|
|
351
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/chevronInput.html) -->
|
|
352
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/chevronInput.html -->
|
|
353
|
-
|
|
354
|
-
```html
|
|
355
|
-
<auro-dropdown aria-label="custom label" chevron>
|
|
356
|
-
Lorem ipsum solar
|
|
357
|
-
<div slot="trigger">
|
|
358
|
-
<auro-input
|
|
359
|
-
slot="trigger"
|
|
360
|
-
id="inputExampleTrigger">
|
|
361
|
-
</auro-input>
|
|
362
|
-
</div>
|
|
363
|
-
</auro-dropdown>
|
|
364
|
-
```
|
|
365
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
366
|
-
</auro-accordion>
|
|
367
257
|
|
|
368
|
-
|
|
258
|
+
### Disabled
|
|
369
259
|
|
|
370
|
-
|
|
260
|
+
Use the `disabled` attribute to disable interaction with the dropdown.
|
|
371
261
|
|
|
372
262
|
<div class="exampleWrapper">
|
|
373
263
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/disabled.html) -->
|
|
@@ -376,15 +266,13 @@ Disables the trigger preventing the dropdown bib from being shown.
|
|
|
376
266
|
aria-label="custom label"
|
|
377
267
|
disabled
|
|
378
268
|
chevron
|
|
379
|
-
|
|
380
|
-
inset
|
|
381
|
-
bordered>
|
|
269
|
+
layout="classic" shape="classic" size="lg">
|
|
382
270
|
Lorem ipsum solar
|
|
383
271
|
<div slot="trigger">
|
|
384
272
|
Trigger
|
|
385
273
|
</div>
|
|
386
274
|
<span slot="helpText">
|
|
387
|
-
|
|
275
|
+
Help text
|
|
388
276
|
</span>
|
|
389
277
|
<span slot="label">
|
|
390
278
|
Name
|
|
@@ -393,8 +281,8 @@ Disables the trigger preventing the dropdown bib from being shown.
|
|
|
393
281
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
394
282
|
</div>
|
|
395
283
|
<div class="exampleWrapper--ondark" aria-hidden>
|
|
396
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/
|
|
397
|
-
<!-- The below content is automatically added from ./../apiExamples/
|
|
284
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-disabled.html) -->
|
|
285
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse-disabled.html -->
|
|
398
286
|
<auro-dropdown
|
|
399
287
|
aria-label="custom label"
|
|
400
288
|
disabled
|
|
@@ -406,7 +294,7 @@ Disables the trigger preventing the dropdown bib from being shown.
|
|
|
406
294
|
Trigger
|
|
407
295
|
</div>
|
|
408
296
|
<span slot="helpText">
|
|
409
|
-
|
|
297
|
+
Help text
|
|
410
298
|
</span>
|
|
411
299
|
<span slot="label">
|
|
412
300
|
Name
|
|
@@ -424,15 +312,13 @@ Disables the trigger preventing the dropdown bib from being shown.
|
|
|
424
312
|
aria-label="custom label"
|
|
425
313
|
disabled
|
|
426
314
|
chevron
|
|
427
|
-
|
|
428
|
-
inset
|
|
429
|
-
bordered>
|
|
315
|
+
layout="classic" shape="classic" size="lg">
|
|
430
316
|
Lorem ipsum solar
|
|
431
317
|
<div slot="trigger">
|
|
432
318
|
Trigger
|
|
433
319
|
</div>
|
|
434
320
|
<span slot="helpText">
|
|
435
|
-
|
|
321
|
+
Help text
|
|
436
322
|
</span>
|
|
437
323
|
<span slot="label">
|
|
438
324
|
Name
|
|
@@ -440,8 +326,8 @@ Disables the trigger preventing the dropdown bib from being shown.
|
|
|
440
326
|
</auro-dropdown>
|
|
441
327
|
```
|
|
442
328
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
443
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/
|
|
444
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/
|
|
329
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/appearance-inverse-disabled.html) -->
|
|
330
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/appearance-inverse-disabled.html -->
|
|
445
331
|
|
|
446
332
|
```html
|
|
447
333
|
<auro-dropdown
|
|
@@ -455,7 +341,7 @@ Disables the trigger preventing the dropdown bib from being shown.
|
|
|
455
341
|
Trigger
|
|
456
342
|
</div>
|
|
457
343
|
<span slot="helpText">
|
|
458
|
-
|
|
344
|
+
Help text
|
|
459
345
|
</span>
|
|
460
346
|
<span slot="label">
|
|
461
347
|
Name
|
|
@@ -465,18 +351,18 @@ Disables the trigger preventing the dropdown bib from being shown.
|
|
|
465
351
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
466
352
|
</auro-accordion>
|
|
467
353
|
|
|
468
|
-
|
|
354
|
+
### Error
|
|
469
355
|
|
|
470
|
-
|
|
356
|
+
Use the `error` attribute to set persistent error state styling on the dropdown.
|
|
471
357
|
|
|
472
358
|
<div class="exampleWrapper">
|
|
473
359
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/error.html) -->
|
|
474
360
|
<!-- The below content is automatically added from ./../apiExamples/error.html -->
|
|
475
|
-
<auro-dropdown
|
|
361
|
+
<auro-dropdown layout="classic" shape="classic" size="lg" error id="errorDropdownExample">
|
|
476
362
|
<div style="padding: var(--ds-size-150);">
|
|
477
363
|
Lorem ipsum solar
|
|
478
364
|
<br />
|
|
479
|
-
<auro-button onclick="document.querySelector('#
|
|
365
|
+
<auro-button onclick="document.querySelector('#errorDropdownExample').hide()">
|
|
480
366
|
Dismiss Dropdown
|
|
481
367
|
</auro-button>
|
|
482
368
|
</div>
|
|
@@ -493,13 +379,13 @@ Adds the error state UI to the trigger.
|
|
|
493
379
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
494
380
|
</div>
|
|
495
381
|
<div class="exampleWrapper--ondark" aria-hidden>
|
|
496
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/
|
|
497
|
-
<!-- The below content is automatically added from ./../apiExamples/
|
|
498
|
-
<auro-dropdown appearance="inverse" layout="classic" shape="classic" size="lg" error id="
|
|
382
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-error.html) -->
|
|
383
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse-error.html -->
|
|
384
|
+
<auro-dropdown appearance="inverse" layout="classic" shape="classic" size="lg" error id="errorDropdownOnDarkExample">
|
|
499
385
|
<div style="padding: var(--ds-size-150);">
|
|
500
386
|
Lorem ipsum solar
|
|
501
387
|
<br />
|
|
502
|
-
<auro-button onclick="document.querySelector('#
|
|
388
|
+
<auro-button onclick="document.querySelector('#errorDropdownOnDarkExample').hide()">
|
|
503
389
|
Dismiss Dropdown
|
|
504
390
|
</auro-button>
|
|
505
391
|
</div>
|
|
@@ -521,11 +407,11 @@ Adds the error state UI to the trigger.
|
|
|
521
407
|
<!-- The below code snippet is automatically added from ./../apiExamples/error.html -->
|
|
522
408
|
|
|
523
409
|
```html
|
|
524
|
-
<auro-dropdown
|
|
410
|
+
<auro-dropdown layout="classic" shape="classic" size="lg" error id="errorDropdownExample">
|
|
525
411
|
<div style="padding: var(--ds-size-150);">
|
|
526
412
|
Lorem ipsum solar
|
|
527
413
|
<br />
|
|
528
|
-
<auro-button onclick="document.querySelector('#
|
|
414
|
+
<auro-button onclick="document.querySelector('#errorDropdownExample').hide()">
|
|
529
415
|
Dismiss Dropdown
|
|
530
416
|
</auro-button>
|
|
531
417
|
</div>
|
|
@@ -541,15 +427,15 @@ Adds the error state UI to the trigger.
|
|
|
541
427
|
</auro-dropdown>
|
|
542
428
|
```
|
|
543
429
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
544
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/
|
|
545
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/
|
|
430
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/appearance-inverse-error.html) -->
|
|
431
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/appearance-inverse-error.html -->
|
|
546
432
|
|
|
547
433
|
```html
|
|
548
|
-
<auro-dropdown appearance="inverse" layout="classic" shape="classic" size="lg" error id="
|
|
434
|
+
<auro-dropdown appearance="inverse" layout="classic" shape="classic" size="lg" error id="errorDropdownOnDarkExample">
|
|
549
435
|
<div style="padding: var(--ds-size-150);">
|
|
550
436
|
Lorem ipsum solar
|
|
551
437
|
<br />
|
|
552
|
-
<auro-button onclick="document.querySelector('#
|
|
438
|
+
<auro-button onclick="document.querySelector('#errorDropdownOnDarkExample').hide()">
|
|
553
439
|
Dismiss Dropdown
|
|
554
440
|
</auro-button>
|
|
555
441
|
</div>
|
|
@@ -567,29 +453,59 @@ Adds the error state UI to the trigger.
|
|
|
567
453
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
568
454
|
</auro-accordion>
|
|
569
455
|
|
|
570
|
-
|
|
456
|
+
### Fullscreen Bib
|
|
571
457
|
|
|
572
|
-
|
|
458
|
+
You can make the dropdown open in fullscreen at a specific breakpoint by setting `fullscreenBreakpoint`.
|
|
459
|
+
|
|
460
|
+
The default value of `fullscreenBreakpoint` is `sm`.
|
|
461
|
+
|
|
462
|
+
Breakpoint token can be found [here](https://auro.alaskaair.com/getting-started/developers/design-tokens).
|
|
573
463
|
|
|
574
464
|
<div class="exampleWrapper">
|
|
575
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/
|
|
576
|
-
<!-- The below content is automatically added from ./../apiExamples/
|
|
577
|
-
<auro-dropdown
|
|
578
|
-
|
|
465
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/fullscreen-breakpoint.html) -->
|
|
466
|
+
<!-- The below content is automatically added from ./../apiExamples/fullscreen-breakpoint.html -->
|
|
467
|
+
<auro-dropdown fullscreenBreakpoint="sm" layout="classic" shape="classic" size="lg" chevron id="fullscreenBreakpointExample">
|
|
468
|
+
<div>
|
|
469
|
+
<p>
|
|
470
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
471
|
+
</p>
|
|
472
|
+
<p>
|
|
473
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
474
|
+
</p>
|
|
475
|
+
<p>
|
|
476
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
477
|
+
</p>
|
|
478
|
+
</div>
|
|
479
|
+
<auro-button onclick="document.querySelector('#fullscreenBreakpointExample').hide()">
|
|
480
|
+
Dismiss Dropdown
|
|
481
|
+
</auro-button>
|
|
579
482
|
<div slot="trigger">
|
|
580
483
|
Trigger
|
|
581
484
|
</div>
|
|
582
485
|
</auro-dropdown>
|
|
583
486
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
584
|
-
</div>
|
|
487
|
+
</div>
|
|
585
488
|
<auro-accordion alignRight>
|
|
586
489
|
<span slot="trigger">See code</span>
|
|
587
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/
|
|
588
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/
|
|
490
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/fullscreen-breakpoint.html) -->
|
|
491
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/fullscreen-breakpoint.html -->
|
|
589
492
|
|
|
590
493
|
```html
|
|
591
|
-
<auro-dropdown
|
|
592
|
-
|
|
494
|
+
<auro-dropdown fullscreenBreakpoint="sm" layout="classic" shape="classic" size="lg" chevron id="fullscreenBreakpointExample">
|
|
495
|
+
<div>
|
|
496
|
+
<p>
|
|
497
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
498
|
+
</p>
|
|
499
|
+
<p>
|
|
500
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
501
|
+
</p>
|
|
502
|
+
<p>
|
|
503
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
504
|
+
</p>
|
|
505
|
+
</div>
|
|
506
|
+
<auro-button onclick="document.querySelector('#fullscreenBreakpointExample').hide()">
|
|
507
|
+
Dismiss Dropdown
|
|
508
|
+
</auro-button>
|
|
593
509
|
<div slot="trigger">
|
|
594
510
|
Trigger
|
|
595
511
|
</div>
|
|
@@ -598,86 +514,223 @@ In cases where it is desired behavior for `auro-dropdown` to only show, not togg
|
|
|
598
514
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
599
515
|
</auro-accordion>
|
|
600
516
|
|
|
601
|
-
|
|
517
|
+
### Layouts
|
|
518
|
+
|
|
519
|
+
The `auro-dropdown` element supports multiple layouts to fit different design needs. The available layouts are: `classic`, `emphasized`, and `snowflake`. Each layout offers a unique visual style while maintaining the same core functionality.
|
|
602
520
|
|
|
603
|
-
|
|
521
|
+
**Important**: The `emphasized` and `snowflake` layouts are designed specifically for dark backgrounds and should be used with the `appearance="inverse"` attribute.
|
|
522
|
+
|
|
523
|
+
#### Classic
|
|
604
524
|
|
|
605
525
|
<div class="exampleWrapper">
|
|
606
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/
|
|
607
|
-
<!-- The below content is automatically added from ./../apiExamples/
|
|
608
|
-
<
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
<p>
|
|
624
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
625
|
-
</p>
|
|
626
|
-
</div>
|
|
627
|
-
<div slot="trigger">
|
|
628
|
-
Trigger
|
|
629
|
-
</div>
|
|
630
|
-
</auro-dropdown>
|
|
631
|
-
</div>
|
|
526
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/classic/basic.html) -->
|
|
527
|
+
<!-- The below content is automatically added from ./../apiExamples/classic/basic.html -->
|
|
528
|
+
<auro-dropdown id="classic" layout="classic" shape="classic" size="lg" chevron aria-label="Label content for screen reader">
|
|
529
|
+
<div style="padding: var(--ds-size-150);">
|
|
530
|
+
Lorem ipsum solar
|
|
531
|
+
<br />
|
|
532
|
+
<auro-button onclick="document.querySelector('#classic').hide()">
|
|
533
|
+
Dismiss Dropdown
|
|
534
|
+
</auro-button>
|
|
535
|
+
</div>
|
|
536
|
+
<span slot="helpText">
|
|
537
|
+
Help text
|
|
538
|
+
</span>
|
|
539
|
+
<div slot="trigger">
|
|
540
|
+
Trigger
|
|
541
|
+
</div>
|
|
542
|
+
</auro-dropdown>
|
|
632
543
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
633
|
-
</div>
|
|
544
|
+
</div>
|
|
634
545
|
<auro-accordion alignRight>
|
|
635
546
|
<span slot="trigger">See code</span>
|
|
636
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/
|
|
637
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/
|
|
547
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/classic/basic.html) -->
|
|
548
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/classic/basic.html -->
|
|
638
549
|
|
|
639
550
|
```html
|
|
640
|
-
<
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
551
|
+
<auro-dropdown id="classic" layout="classic" shape="classic" size="lg" chevron aria-label="Label content for screen reader">
|
|
552
|
+
<div style="padding: var(--ds-size-150);">
|
|
553
|
+
Lorem ipsum solar
|
|
554
|
+
<br />
|
|
555
|
+
<auro-button onclick="document.querySelector('#classic').hide()">
|
|
556
|
+
Dismiss Dropdown
|
|
557
|
+
</auro-button>
|
|
558
|
+
</div>
|
|
559
|
+
<span slot="helpText">
|
|
560
|
+
Help text
|
|
561
|
+
</span>
|
|
562
|
+
<div slot="trigger">
|
|
563
|
+
Trigger
|
|
564
|
+
</div>
|
|
565
|
+
</auro-dropdown>
|
|
566
|
+
```
|
|
567
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
568
|
+
</auro-accordion>
|
|
569
|
+
<div class="exampleWrapper--ondark">
|
|
570
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/classic/appearance-inverse.html) -->
|
|
571
|
+
<!-- The below content is automatically added from ./../apiExamples/classic/appearance-inverse.html -->
|
|
572
|
+
<auro-dropdown appearance="inverse" layout="classic" shape="classic" size="lg" id="classicOnDark" chevron aria-label="Label content for screen reader">
|
|
573
|
+
<div style="padding: var(--ds-size-150);">
|
|
574
|
+
Lorem ipsum solar
|
|
575
|
+
<br />
|
|
576
|
+
<auro-button onclick="document.querySelector('#classicOnDark').hide()">
|
|
577
|
+
Dismiss Dropdown
|
|
578
|
+
</auro-button>
|
|
658
579
|
</div>
|
|
580
|
+
<span slot="helpText">
|
|
581
|
+
Help text
|
|
582
|
+
</span>
|
|
659
583
|
<div slot="trigger">
|
|
660
584
|
Trigger
|
|
661
585
|
</div>
|
|
662
586
|
</auro-dropdown>
|
|
587
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
663
588
|
</div>
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
### Customized bib position
|
|
669
|
-
The bib position can be customized with `placement`, `offset`, `flip`, `autoPlacement`, and `shift` attributes.
|
|
670
|
-
|
|
671
|
-
- `placement` specifies the preferred position where the bib should appear relative to the trigger.
|
|
672
|
-
- `offset` sets the distance between the trigger and the bib.
|
|
673
|
-
- When `autoPlacement` is enabled, smart positioning logic is applied to determine the best placement for the bib. If all sides have sufficient space, the bib will appear in the position specified by `placement`.
|
|
674
|
-
- Unless `noFlip` is enabled, if there isn't enough space for the preferred `placement`, the bib will automatically flip to an alternative position.
|
|
675
|
-
- `shift` when enabled, adjusts the bib position when it would overflow the viewport boundaries, ensuring it remains visible.
|
|
589
|
+
<auro-accordion alignRight>
|
|
590
|
+
<span slot="trigger">See code</span>
|
|
591
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/classic/appearance-inverse.html) -->
|
|
592
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/classic/appearance-inverse.html -->
|
|
676
593
|
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
594
|
+
```html
|
|
595
|
+
<auro-dropdown appearance="inverse" layout="classic" shape="classic" size="lg" id="classicOnDark" chevron aria-label="Label content for screen reader">
|
|
596
|
+
<div style="padding: var(--ds-size-150);">
|
|
597
|
+
Lorem ipsum solar
|
|
598
|
+
<br />
|
|
599
|
+
<auro-button onclick="document.querySelector('#classicOnDark').hide()">
|
|
600
|
+
Dismiss Dropdown
|
|
601
|
+
</auro-button>
|
|
602
|
+
</div>
|
|
603
|
+
<span slot="helpText">
|
|
604
|
+
Help text
|
|
605
|
+
</span>
|
|
606
|
+
<div slot="trigger">
|
|
607
|
+
Trigger
|
|
608
|
+
</div>
|
|
609
|
+
</auro-dropdown>
|
|
610
|
+
```
|
|
611
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
612
|
+
</auro-accordion>
|
|
613
|
+
|
|
614
|
+
#### Emphasized
|
|
615
|
+
|
|
616
|
+
<div class="exampleWrapper--ondark">
|
|
617
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/emphasized/basic.html) -->
|
|
618
|
+
<!-- The below content is automatically added from ./../apiExamples/emphasized/basic.html -->
|
|
619
|
+
<auro-dropdown aria-label="custom label" shape="pill" size="xl" layout="emphasized" style="width: 249px;" appearance="inverse">
|
|
620
|
+
Lorem ipsum solar
|
|
621
|
+
<div slot="trigger">
|
|
622
|
+
Trigger
|
|
623
|
+
</div>
|
|
624
|
+
<span slot="helpText">
|
|
625
|
+
Help text - Lorem ipsum solar lorem ipsum solar
|
|
626
|
+
</span>
|
|
627
|
+
</auro-dropdown>
|
|
628
|
+
<auro-dropdown aria-label="custom label" shape="pill-left" size="xl" layout="emphasized" style="width: 249px;" appearance="inverse">
|
|
629
|
+
Lorem ipsum solar
|
|
630
|
+
<div slot="trigger">
|
|
631
|
+
Trigger
|
|
632
|
+
</div>
|
|
633
|
+
<span slot="helpText">
|
|
634
|
+
Help text - Lorem ipsum solar lorem ipsum solar
|
|
635
|
+
</span>
|
|
636
|
+
</auro-dropdown>
|
|
637
|
+
<auro-dropdown aria-label="custom label" shape="pill-right" size="xl" layout="emphasized" style="width: 249px;" appearance="inverse">
|
|
638
|
+
Lorem ipsum solar
|
|
639
|
+
<div slot="trigger">
|
|
640
|
+
Trigger
|
|
641
|
+
</div>
|
|
642
|
+
<span slot="helpText">
|
|
643
|
+
Help text - Lorem ipsum solar lorem ipsum solar
|
|
644
|
+
</span>
|
|
645
|
+
</auro-dropdown>
|
|
646
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
647
|
+
</div>
|
|
648
|
+
<auro-accordion alignRight>
|
|
649
|
+
<span slot="trigger">See code</span>
|
|
650
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/emphasized/basic.html) -->
|
|
651
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/emphasized/basic.html -->
|
|
652
|
+
|
|
653
|
+
```html
|
|
654
|
+
<auro-dropdown aria-label="custom label" shape="pill" size="xl" layout="emphasized" style="width: 249px;" appearance="inverse">
|
|
655
|
+
Lorem ipsum solar
|
|
656
|
+
<div slot="trigger">
|
|
657
|
+
Trigger
|
|
658
|
+
</div>
|
|
659
|
+
<span slot="helpText">
|
|
660
|
+
Help text - Lorem ipsum solar lorem ipsum solar
|
|
661
|
+
</span>
|
|
662
|
+
</auro-dropdown>
|
|
663
|
+
<auro-dropdown aria-label="custom label" shape="pill-left" size="xl" layout="emphasized" style="width: 249px;" appearance="inverse">
|
|
664
|
+
Lorem ipsum solar
|
|
665
|
+
<div slot="trigger">
|
|
666
|
+
Trigger
|
|
667
|
+
</div>
|
|
668
|
+
<span slot="helpText">
|
|
669
|
+
Help text - Lorem ipsum solar lorem ipsum solar
|
|
670
|
+
</span>
|
|
671
|
+
</auro-dropdown>
|
|
672
|
+
<auro-dropdown aria-label="custom label" shape="pill-right" size="xl" layout="emphasized" style="width: 249px;" appearance="inverse">
|
|
673
|
+
Lorem ipsum solar
|
|
674
|
+
<div slot="trigger">
|
|
675
|
+
Trigger
|
|
676
|
+
</div>
|
|
677
|
+
<span slot="helpText">
|
|
678
|
+
Help text - Lorem ipsum solar lorem ipsum solar
|
|
679
|
+
</span>
|
|
680
|
+
</auro-dropdown>
|
|
681
|
+
```
|
|
682
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
683
|
+
</auro-accordion>
|
|
684
|
+
|
|
685
|
+
#### Snowflake
|
|
686
|
+
|
|
687
|
+
<div class="exampleWrapper--ondark">
|
|
688
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/snowflake/basic.html) -->
|
|
689
|
+
<!-- The below content is automatically added from ./../apiExamples/snowflake/basic.html -->
|
|
690
|
+
<auro-dropdown aria-label="custom label" shape="snowflake" size="lg" layout="snowflake" style="width: 249px;" appearance="inverse">
|
|
691
|
+
Lorem ipsum solar
|
|
692
|
+
<div slot="trigger">
|
|
693
|
+
Trigger
|
|
694
|
+
</div>
|
|
695
|
+
<span slot="helpText">
|
|
696
|
+
Help text - Lorem ipsum solar lorem ipsum solar
|
|
697
|
+
</span>
|
|
698
|
+
</auro-dropdown>
|
|
699
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
700
|
+
</div>
|
|
701
|
+
<auro-accordion alignRight>
|
|
702
|
+
<span slot="trigger">See code</span>
|
|
703
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/snowflake/basic.html) -->
|
|
704
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/snowflake/basic.html -->
|
|
705
|
+
|
|
706
|
+
```html
|
|
707
|
+
<auro-dropdown aria-label="custom label" shape="snowflake" size="lg" layout="snowflake" style="width: 249px;" appearance="inverse">
|
|
708
|
+
Lorem ipsum solar
|
|
709
|
+
<div slot="trigger">
|
|
710
|
+
Trigger
|
|
711
|
+
</div>
|
|
712
|
+
<span slot="helpText">
|
|
713
|
+
Help text - Lorem ipsum solar lorem ipsum solar
|
|
714
|
+
</span>
|
|
715
|
+
</auro-dropdown>
|
|
716
|
+
```
|
|
717
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
718
|
+
</auro-accordion>
|
|
719
|
+
|
|
720
|
+
### Customized Bib Position
|
|
721
|
+
|
|
722
|
+
The bib position can be customized with `placement`, `offset`, `flip`, `autoPlacement`, and `shift` attributes.
|
|
723
|
+
|
|
724
|
+
- `placement` specifies the preferred position where the bib should appear relative to the trigger.
|
|
725
|
+
- `offset` sets the distance between the trigger and the bib.
|
|
726
|
+
- When `autoPlacement` is enabled, smart positioning logic is applied to determine the best placement for the bib. If all sides have sufficient space, the bib will appear in the position specified by `placement`.
|
|
727
|
+
- Unless `noFlip` is enabled, if there isn't enough space for the preferred `placement`, the bib will automatically flip to an alternative position.
|
|
728
|
+
- `shift` when enabled, adjusts the bib position when it would overflow the viewport boundaries, ensuring it remains visible.
|
|
729
|
+
|
|
730
|
+
<div class="exampleWrapper">
|
|
731
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/floater-config.html) -->
|
|
732
|
+
<!-- The below content is automatically added from ./../apiExamples/floater-config.html -->
|
|
733
|
+
<style>
|
|
681
734
|
.floaterConfigDropdown::part(size) {
|
|
682
735
|
width: 300px;
|
|
683
736
|
max-height: 200px;
|
|
@@ -769,8 +822,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
769
822
|
</div>
|
|
770
823
|
<auro-accordion alignRight>
|
|
771
824
|
<span slot="trigger">See code</span>
|
|
772
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/
|
|
773
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/
|
|
825
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/floater-config.html) -->
|
|
826
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/floater-config.html -->
|
|
774
827
|
|
|
775
828
|
```html
|
|
776
829
|
<style>
|
|
@@ -865,57 +918,47 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
865
918
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
866
919
|
</auro-accordion>
|
|
867
920
|
|
|
868
|
-
###
|
|
869
|
-
|
|
870
|
-
#### default
|
|
871
|
-
|
|
872
|
-
All examples shown on this page include default slot content.
|
|
873
|
-
|
|
874
|
-
#### trigger
|
|
921
|
+
### Match Width
|
|
875
922
|
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
This slot may contain any static content (e.g. plain text) and/or no more than one of the following elements:
|
|
879
|
-
- `<a>`
|
|
880
|
-
- `<auro-hyperlink>`
|
|
881
|
-
- `<button>`
|
|
882
|
-
- `<auro-button>`
|
|
883
|
-
- `<input>`
|
|
884
|
-
- `<auro-input>`
|
|
885
|
-
|
|
886
|
-
#### label
|
|
887
|
-
|
|
888
|
-
Content defined in the `label` slot will be rendered left aligned inside the trigger above all other defined trigger slot content.
|
|
923
|
+
When the `matchWidth` attribute is applied, the width of the dropdown bib will match the width of the trigger element.
|
|
889
924
|
|
|
890
925
|
<div class="exampleWrapper">
|
|
891
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/
|
|
892
|
-
<!-- The below content is automatically added from ./../apiExamples/
|
|
893
|
-
<auro-dropdown
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
926
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/match-width.html) -->
|
|
927
|
+
<!-- The below content is automatically added from ./../apiExamples/match-width.html -->
|
|
928
|
+
<auro-dropdown id="common" layout="classic" shape="classic" size="lg" matchWidth aria-label="Label content for screen reader">
|
|
929
|
+
<div style="padding: var(--ds-size-150);">
|
|
930
|
+
Lorem ipsum solar
|
|
931
|
+
<br />
|
|
932
|
+
<auro-button onclick="document.querySelector('#common').hide()">
|
|
933
|
+
Dismiss Dropdown
|
|
934
|
+
</auro-button>
|
|
935
|
+
</div>
|
|
936
|
+
<span slot="helpText">
|
|
937
|
+
Help text
|
|
938
|
+
</span>
|
|
900
939
|
<div slot="trigger">
|
|
901
940
|
Trigger
|
|
902
941
|
</div>
|
|
903
942
|
</auro-dropdown>
|
|
904
943
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
905
|
-
</div>
|
|
944
|
+
</div>
|
|
906
945
|
<auro-accordion alignRight>
|
|
907
946
|
<span slot="trigger">See code</span>
|
|
908
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/
|
|
909
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/
|
|
947
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/match-width.html) -->
|
|
948
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/match-width.html -->
|
|
910
949
|
|
|
911
950
|
```html
|
|
912
|
-
<auro-dropdown
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
951
|
+
<auro-dropdown id="common" layout="classic" shape="classic" size="lg" matchWidth aria-label="Label content for screen reader">
|
|
952
|
+
<div style="padding: var(--ds-size-150);">
|
|
953
|
+
Lorem ipsum solar
|
|
954
|
+
<br />
|
|
955
|
+
<auro-button onclick="document.querySelector('#common').hide()">
|
|
956
|
+
Dismiss Dropdown
|
|
957
|
+
</auro-button>
|
|
958
|
+
</div>
|
|
959
|
+
<span slot="helpText">
|
|
960
|
+
Help text
|
|
961
|
+
</span>
|
|
919
962
|
<div slot="trigger">
|
|
920
963
|
Trigger
|
|
921
964
|
</div>
|
|
@@ -924,43 +967,29 @@ Content defined in the `label` slot will be rendered left aligned inside the tri
|
|
|
924
967
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
925
968
|
</auro-accordion>
|
|
926
969
|
|
|
927
|
-
|
|
970
|
+
### No Toggle
|
|
928
971
|
|
|
929
|
-
|
|
972
|
+
In cases where it is desired behavior for `auro-dropdown` to only show, not toggle, the bib content when activating the trigger the `noToggle` attribute must be applied.
|
|
930
973
|
|
|
931
974
|
<div class="exampleWrapper">
|
|
932
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/
|
|
933
|
-
<!-- The below content is automatically added from ./../apiExamples/
|
|
934
|
-
<auro-dropdown
|
|
935
|
-
aria-label="custom label"
|
|
936
|
-
inset
|
|
937
|
-
bordered
|
|
938
|
-
rounded>
|
|
975
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/no-toggle.html) -->
|
|
976
|
+
<!-- The below content is automatically added from ./../apiExamples/no-toggle.html -->
|
|
977
|
+
<auro-dropdown aria-label="custom label" noToggle>
|
|
939
978
|
Lorem ipsum solar
|
|
940
|
-
<span slot="helpText">
|
|
941
|
-
Helper text
|
|
942
|
-
</span>
|
|
943
979
|
<div slot="trigger">
|
|
944
980
|
Trigger
|
|
945
981
|
</div>
|
|
946
982
|
</auro-dropdown>
|
|
947
983
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
948
|
-
</div>
|
|
984
|
+
</div>
|
|
949
985
|
<auro-accordion alignRight>
|
|
950
986
|
<span slot="trigger">See code</span>
|
|
951
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/
|
|
952
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/
|
|
987
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/no-toggle.html) -->
|
|
988
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/no-toggle.html -->
|
|
953
989
|
|
|
954
990
|
```html
|
|
955
|
-
<auro-dropdown
|
|
956
|
-
aria-label="custom label"
|
|
957
|
-
inset
|
|
958
|
-
bordered
|
|
959
|
-
rounded>
|
|
991
|
+
<auro-dropdown aria-label="custom label" noToggle>
|
|
960
992
|
Lorem ipsum solar
|
|
961
|
-
<span slot="helpText">
|
|
962
|
-
Helper text
|
|
963
|
-
</span>
|
|
964
993
|
<div slot="trigger">
|
|
965
994
|
Trigger
|
|
966
995
|
</div>
|
|
@@ -969,65 +998,82 @@ Content defined in the `helpText` slot will be rendered left aligned below the t
|
|
|
969
998
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
970
999
|
</auro-accordion>
|
|
971
1000
|
|
|
972
|
-
|
|
1001
|
+
## Method Examples
|
|
1002
|
+
|
|
1003
|
+
### Hide
|
|
1004
|
+
|
|
1005
|
+
The `hide()` method can be called from within the default slot content. This is useful for cases such as `auro-select` when the dropdown should be collapsed after making a selection.
|
|
1006
|
+
|
|
1007
|
+
The `hide()` method may also be called from anywhere in your code by executing `document.querySelector('#idOfTheDropdownElement').hide()`.
|
|
973
1008
|
|
|
974
|
-
|
|
1009
|
+
This example demonstrations collapsing the dropdown by clicking a button within the dropdown bib content.
|
|
975
1010
|
|
|
976
1011
|
<div class="exampleWrapper">
|
|
977
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/
|
|
978
|
-
<!-- The below content is automatically added from ./../apiExamples/
|
|
979
|
-
<auro-dropdown
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
Helper text
|
|
988
|
-
</span>
|
|
989
|
-
<div slot="trigger">
|
|
990
|
-
Trigger
|
|
1012
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/programmatically-hide.html) -->
|
|
1013
|
+
<!-- The below content is automatically added from ./../apiExamples/programmatically-hide.html -->
|
|
1014
|
+
<auro-dropdown id="hideExample" aria-label="custom label" layout="classic" shape="classic" size="lg">
|
|
1015
|
+
<p>
|
|
1016
|
+
Lorem ipsum solar
|
|
1017
|
+
</p>
|
|
1018
|
+
<div style="padding: var(--ds-size-150);">
|
|
1019
|
+
<auro-button id="hideExampleBtn" onclick="document.querySelector('#hideExample').hide()">
|
|
1020
|
+
Hide Dropdown
|
|
1021
|
+
</auro-button>
|
|
991
1022
|
</div>
|
|
1023
|
+
<span slot="trigger">
|
|
1024
|
+
Trigger
|
|
1025
|
+
</span>
|
|
992
1026
|
</auro-dropdown>
|
|
993
1027
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
994
|
-
</div>
|
|
1028
|
+
</div>
|
|
995
1029
|
<auro-accordion alignRight>
|
|
996
1030
|
<span slot="trigger">See code</span>
|
|
997
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/
|
|
998
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/
|
|
1031
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/programmatically-hide.html) -->
|
|
1032
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/programmatically-hide.html -->
|
|
999
1033
|
|
|
1000
1034
|
```html
|
|
1001
|
-
<auro-dropdown
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
Helper text
|
|
1010
|
-
</span>
|
|
1011
|
-
<div slot="trigger">
|
|
1012
|
-
Trigger
|
|
1035
|
+
<auro-dropdown id="hideExample" aria-label="custom label" layout="classic" shape="classic" size="lg">
|
|
1036
|
+
<p>
|
|
1037
|
+
Lorem ipsum solar
|
|
1038
|
+
</p>
|
|
1039
|
+
<div style="padding: var(--ds-size-150);">
|
|
1040
|
+
<auro-button id="hideExampleBtn" onclick="document.querySelector('#hideExample').hide()">
|
|
1041
|
+
Hide Dropdown
|
|
1042
|
+
</auro-button>
|
|
1013
1043
|
</div>
|
|
1044
|
+
<span slot="trigger">
|
|
1045
|
+
Trigger
|
|
1046
|
+
</span>
|
|
1014
1047
|
</auro-dropdown>
|
|
1015
1048
|
```
|
|
1016
1049
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1017
|
-
|
|
1050
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/programmatically-hide.js) -->
|
|
1051
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/programmatically-hide.js -->
|
|
1018
1052
|
|
|
1019
|
-
|
|
1053
|
+
```js
|
|
1054
|
+
export function hideExample() {
|
|
1055
|
+
const btn = document.querySelector('#hideExampleBtn');
|
|
1056
|
+
const dropdown = document.querySelector('#hideExample');
|
|
1057
|
+
|
|
1058
|
+
btn.addEventListener('click', () => {
|
|
1059
|
+
dropdown.hide();
|
|
1060
|
+
});
|
|
1061
|
+
}
|
|
1062
|
+
```
|
|
1063
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1064
|
+
</auro-accordion>
|
|
1020
1065
|
|
|
1021
|
-
|
|
1066
|
+
### Show
|
|
1022
1067
|
|
|
1023
|
-
The `show` method may also be called from anywhere in your code by executing `document.querySelector('#idOfTheDropdownElement').show()`. This example will execute the `show` method on a `keydown` event with focus in the input element.
|
|
1068
|
+
The `show()` method may also be called from anywhere in your code by executing `document.querySelector('#idOfTheDropdownElement').show()`. This example will execute the `show()` method on a `keydown` event with focus in the input element.
|
|
1024
1069
|
|
|
1025
1070
|
<div class="exampleWrapper">
|
|
1026
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/
|
|
1027
|
-
<!-- The below content is automatically added from ./../apiExamples/
|
|
1071
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/programmatically-show.html) -->
|
|
1072
|
+
<!-- The below content is automatically added from ./../apiExamples/programmatically-show.html -->
|
|
1028
1073
|
<auro-input id="showExampleTriggerInput" required>
|
|
1029
1074
|
<span slot="label">Enter a value to show the dropdown</span>
|
|
1030
|
-
</auro-input>
|
|
1075
|
+
</auro-input>
|
|
1076
|
+
<br />
|
|
1031
1077
|
<auro-dropdown id="showMethodExample" aria-label="custom label" layout="classic" shape="classic" size="lg">
|
|
1032
1078
|
<p>
|
|
1033
1079
|
Lorem ipsum solar
|
|
@@ -1035,16 +1081,17 @@ The `show` method may also be called from anywhere in your code by executing `do
|
|
|
1035
1081
|
<span slot="trigger">Trigger Label</span>
|
|
1036
1082
|
</auro-dropdown>
|
|
1037
1083
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1038
|
-
</div>
|
|
1084
|
+
</div>
|
|
1039
1085
|
<auro-accordion alignRight>
|
|
1040
1086
|
<span slot="trigger">See code</span>
|
|
1041
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/
|
|
1042
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/
|
|
1087
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/programmatically-show.html) -->
|
|
1088
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/programmatically-show.html -->
|
|
1043
1089
|
|
|
1044
1090
|
```html
|
|
1045
1091
|
<auro-input id="showExampleTriggerInput" required>
|
|
1046
1092
|
<span slot="label">Enter a value to show the dropdown</span>
|
|
1047
|
-
</auro-input>
|
|
1093
|
+
</auro-input>
|
|
1094
|
+
<br />
|
|
1048
1095
|
<auro-dropdown id="showMethodExample" aria-label="custom label" layout="classic" shape="classic" size="lg">
|
|
1049
1096
|
<p>
|
|
1050
1097
|
Lorem ipsum solar
|
|
@@ -1053,8 +1100,8 @@ The `show` method may also be called from anywhere in your code by executing `do
|
|
|
1053
1100
|
</auro-dropdown>
|
|
1054
1101
|
```
|
|
1055
1102
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1056
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/
|
|
1057
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/
|
|
1103
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/programmatically-show.js) -->
|
|
1104
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/programmatically-show.js -->
|
|
1058
1105
|
|
|
1059
1106
|
```js
|
|
1060
1107
|
export function showExample() {
|
|
@@ -1069,80 +1116,81 @@ export function showExample() {
|
|
|
1069
1116
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1070
1117
|
</auro-accordion>
|
|
1071
1118
|
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
The `hide` method may also be called from anywhere in your code by executing `document.querySelector('#idOfTheDropdownElement').hide()`.
|
|
1119
|
+
## Slot Examples
|
|
1120
|
+
|
|
1121
|
+
### Help Text
|
|
1077
1122
|
|
|
1078
|
-
|
|
1123
|
+
Content defined in the `helpText` slot will be rendered left aligned below the trigger. This slot requires the `auro-helptext` component be used as slot content for the helptext to render with the same styles as other form elements.
|
|
1079
1124
|
|
|
1080
1125
|
<div class="exampleWrapper">
|
|
1081
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/
|
|
1082
|
-
<!-- The below content is automatically added from ./../apiExamples/
|
|
1083
|
-
<auro-dropdown
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1126
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/help-text.html) -->
|
|
1127
|
+
<!-- The below content is automatically added from ./../apiExamples/help-text.html -->
|
|
1128
|
+
<auro-dropdown
|
|
1129
|
+
aria-label="custom label"
|
|
1130
|
+
inset
|
|
1131
|
+
bordered
|
|
1132
|
+
rounded>
|
|
1133
|
+
Lorem ipsum solar
|
|
1134
|
+
<span slot="helpText">
|
|
1135
|
+
Helper text
|
|
1136
|
+
</span>
|
|
1137
|
+
<div slot="trigger">
|
|
1138
|
+
Trigger
|
|
1139
|
+
</div>
|
|
1094
1140
|
</auro-dropdown>
|
|
1095
1141
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1096
|
-
</div>
|
|
1142
|
+
</div>
|
|
1097
1143
|
<auro-accordion alignRight>
|
|
1098
1144
|
<span slot="trigger">See code</span>
|
|
1099
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/
|
|
1100
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/
|
|
1145
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/help-text.html) -->
|
|
1146
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/help-text.html -->
|
|
1101
1147
|
|
|
1102
1148
|
```html
|
|
1103
|
-
<auro-dropdown
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1149
|
+
<auro-dropdown
|
|
1150
|
+
aria-label="custom label"
|
|
1151
|
+
inset
|
|
1152
|
+
bordered
|
|
1153
|
+
rounded>
|
|
1154
|
+
Lorem ipsum solar
|
|
1155
|
+
<span slot="helpText">
|
|
1156
|
+
Helper text
|
|
1157
|
+
</span>
|
|
1158
|
+
<div slot="trigger">
|
|
1159
|
+
Trigger
|
|
1160
|
+
</div>
|
|
1114
1161
|
</auro-dropdown>
|
|
1115
1162
|
```
|
|
1116
1163
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1117
1164
|
</auro-accordion>
|
|
1118
|
-
</auro-accordion>
|
|
1119
1165
|
|
|
1120
|
-
###
|
|
1166
|
+
### Trigger
|
|
1167
|
+
|
|
1168
|
+
Content defined in the `trigger` slot will be rendered in the clickable trigger of the dropdown that is used to display the bib. Focus state visual effects will be disabled on the trigger when it contains a focusable element other than `<auro-input>`.
|
|
1169
|
+
|
|
1170
|
+
This slot may contain any static content (e.g. plain text) and/or no more than one of the following elements:
|
|
1171
|
+
- `<a>`
|
|
1172
|
+
- `<auro-hyperlink>`
|
|
1173
|
+
- `<button>`
|
|
1174
|
+
- `<auro-button>`
|
|
1175
|
+
- `<input>`
|
|
1176
|
+
- `<auro-input>`
|
|
1177
|
+
- `<svg>`
|
|
1178
|
+
- `<auro-icon>`
|
|
1121
1179
|
|
|
1122
|
-
|
|
1180
|
+
## Common Usage Patterns & Functional Examples
|
|
1181
|
+
|
|
1182
|
+
### Width and Sizing Behavior
|
|
1123
1183
|
|
|
1124
|
-
- **Width:** The `auro-dropdown`
|
|
1184
|
+
- **Width:** The `auro-dropdown` element will automatically consume the full width of its parent container. Wrap the `auro-dropdown` in a container element with a defined width to control the overall width of the dropdown.
|
|
1125
1185
|
|
|
1126
|
-
- **
|
|
1127
|
-
- `width`
|
|
1128
|
-
- `height`
|
|
1129
|
-
- `maxWidth`
|
|
1130
|
-
- `maxHeight`
|
|
1186
|
+
- **Scroll Behavior:** When the content exceeds the specified size, the browser will provide a scroll for the overflow.
|
|
1131
1187
|
|
|
1132
|
-
- **Scroll Behavior:** When the content exceeds the specified size, the browser will provide a scroll for the overflow.
|
|
1133
|
-
|
|
1134
1188
|
<div class="exampleWrapper">
|
|
1135
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/
|
|
1136
|
-
<!-- The below content is automatically added from ./../apiExamples/
|
|
1137
|
-
<style>
|
|
1138
|
-
#customDropdown100::part(size) {
|
|
1139
|
-
width: 100px;
|
|
1140
|
-
max-height: 200px;
|
|
1141
|
-
}
|
|
1142
|
-
</style>
|
|
1189
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/custom-dimensions.html) -->
|
|
1190
|
+
<!-- The below content is automatically added from ./../apiExamples/custom-dimensions.html -->
|
|
1143
1191
|
<div style="width: 100px;" aria-label="custom label">
|
|
1144
1192
|
<auro-dropdown id="customDropdown100" layout="classic" shape="classic" size="lg" chevron>
|
|
1145
|
-
<div>
|
|
1193
|
+
<div style="max-height: 200px;">
|
|
1146
1194
|
<p>
|
|
1147
1195
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
1148
1196
|
</p>
|
|
@@ -1162,19 +1210,13 @@ This example demonstrations collapsing the dropdown by clicking a button within
|
|
|
1162
1210
|
</div>
|
|
1163
1211
|
<auro-accordion alignRight>
|
|
1164
1212
|
<span slot="trigger">See code</span>
|
|
1165
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/
|
|
1166
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/
|
|
1213
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/custom-dimensions.html) -->
|
|
1214
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/custom-dimensions.html -->
|
|
1167
1215
|
|
|
1168
1216
|
```html
|
|
1169
|
-
<style>
|
|
1170
|
-
#customDropdown100::part(size) {
|
|
1171
|
-
width: 100px;
|
|
1172
|
-
max-height: 200px;
|
|
1173
|
-
}
|
|
1174
|
-
</style>
|
|
1175
1217
|
<div style="width: 100px;" aria-label="custom label">
|
|
1176
1218
|
<auro-dropdown id="customDropdown100" layout="classic" shape="classic" size="lg" chevron>
|
|
1177
|
-
<div>
|
|
1219
|
+
<div style="max-height: 200px;">
|
|
1178
1220
|
<p>
|
|
1179
1221
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
1180
1222
|
</p>
|
|
@@ -1194,23 +1236,23 @@ This example demonstrations collapsing the dropdown by clicking a button within
|
|
|
1194
1236
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1195
1237
|
</auro-accordion>
|
|
1196
1238
|
|
|
1197
|
-
|
|
1239
|
+
### Dropdown in Dialog
|
|
1198
1240
|
|
|
1199
|
-
The
|
|
1241
|
+
The element used within an `auro-dialog`.
|
|
1200
1242
|
|
|
1201
1243
|
<div class="exampleWrapper">
|
|
1202
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/
|
|
1203
|
-
<!-- The below content is automatically added from ./../apiExamples/
|
|
1244
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/in-dialog.html) -->
|
|
1245
|
+
<!-- The below content is automatically added from ./../apiExamples/in-dialog.html -->
|
|
1204
1246
|
<div>
|
|
1205
1247
|
<auro-button id="dropdown-dialog-opener">Dropdown in Dialog</auro-button>
|
|
1206
1248
|
<auro-dialog id="dropdown-dialog">
|
|
1207
1249
|
<span slot="header">Dropdown in Dialog</span>
|
|
1208
1250
|
<div slot="content">
|
|
1209
|
-
<auro-dropdown id="
|
|
1251
|
+
<auro-dropdown id="in-dialog-dropdown" layout="classic" shape="classic" size="lg">
|
|
1210
1252
|
<div style="padding: var(--ds-size-150);">
|
|
1211
1253
|
Lorem ipsum solar
|
|
1212
1254
|
<br />
|
|
1213
|
-
<auro-button onclick="document.querySelector('#
|
|
1255
|
+
<auro-button onclick="document.querySelector('#in-dialog-dropdown').hide()">
|
|
1214
1256
|
Dismiss Dropdown
|
|
1215
1257
|
</auro-button>
|
|
1216
1258
|
</div>
|
|
@@ -1231,8 +1273,8 @@ The component can be in a dialog.
|
|
|
1231
1273
|
</div>
|
|
1232
1274
|
<auro-accordion alignRight>
|
|
1233
1275
|
<span slot="trigger">See code</span>
|
|
1234
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/
|
|
1235
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/
|
|
1276
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/in-dialog.html) -->
|
|
1277
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/in-dialog.html -->
|
|
1236
1278
|
|
|
1237
1279
|
```html
|
|
1238
1280
|
<div>
|
|
@@ -1240,11 +1282,11 @@ The component can be in a dialog.
|
|
|
1240
1282
|
<auro-dialog id="dropdown-dialog">
|
|
1241
1283
|
<span slot="header">Dropdown in Dialog</span>
|
|
1242
1284
|
<div slot="content">
|
|
1243
|
-
<auro-dropdown id="
|
|
1285
|
+
<auro-dropdown id="in-dialog-dropdown" layout="classic" shape="classic" size="lg">
|
|
1244
1286
|
<div style="padding: var(--ds-size-150);">
|
|
1245
1287
|
Lorem ipsum solar
|
|
1246
1288
|
<br />
|
|
1247
|
-
<auro-button onclick="document.querySelector('#
|
|
1289
|
+
<auro-button onclick="document.querySelector('#in-dialog-dropdown').hide()">
|
|
1248
1290
|
Dismiss Dropdown
|
|
1249
1291
|
</auro-button>
|
|
1250
1292
|
</div>
|
|
@@ -1263,8 +1305,8 @@ The component can be in a dialog.
|
|
|
1263
1305
|
</div>
|
|
1264
1306
|
```
|
|
1265
1307
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1266
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/
|
|
1267
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/
|
|
1308
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/in-dialog.js) -->
|
|
1309
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/in-dialog.js -->
|
|
1268
1310
|
|
|
1269
1311
|
```js
|
|
1270
1312
|
export function inDialogExample() {
|
|
@@ -1277,9 +1319,9 @@ export function inDialogExample() {
|
|
|
1277
1319
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1278
1320
|
</auro-accordion>
|
|
1279
1321
|
|
|
1280
|
-
|
|
1322
|
+
## Restyle Component with CSS Variables
|
|
1281
1323
|
|
|
1282
|
-
The component may be restyled
|
|
1324
|
+
The component may be restyled by changing the values of the following token(s).
|
|
1283
1325
|
|
|
1284
1326
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../src/styles/tokens.scss) -->
|
|
1285
1327
|
<!-- The below code snippet is automatically added from ./../src/styles/tokens.scss -->
|