@aurodesignsystem-dev/auro-carousel 0.0.0-pr140.0 → 0.0.0-pr142.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/README.md +77 -87
- package/demo/api.md +366 -365
- package/demo/api.min.js +717 -2
- package/demo/index.md +42 -42
- package/demo/index.min.js +716 -1
- package/demo/readme.md +164 -0
- package/dist/auro-carousel-nUna7XQs.js +144 -0
- package/dist/index.d.ts +207 -83
- package/dist/index.js +1 -1
- package/dist/registered.js +1 -1
- package/package.json +8 -8
- package/demo/auro-carousel.min.js +0 -677
- package/dist/auro-carousel-D1ntQpGY.js +0 -121
package/demo/api.md
CHANGED
|
@@ -3,495 +3,496 @@
|
|
|
3
3
|
|
|
4
4
|
# auro-carousel
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Displays a group of elements, such as flight date options or images, in a horizontally scrollable container with buttons to scroll left and right.
|
|
7
|
+
|
|
8
|
+
**Key capabilities:**
|
|
9
|
+
- **Scroll buttons**: Shows left and right buttons on medium and larger screens when there's more content to scroll to. Add `displayArrows` to always show them.
|
|
10
|
+
- **Centered selection**: Scrolls the first element with the `selected` attribute to the center when you add `centerSelected`.
|
|
11
|
+
- **Custom scroll distance**: Sets how far each button press scrolls, in pixels, with `scrollDistance`.
|
|
12
|
+
- **Accessible names**: Names the carousel and its scroll buttons through the `ariaLabel`, `ariaLabel.scroll.left`, and `ariaLabel.scroll.right` slots.
|
|
7
13
|
|
|
8
14
|
### Properties & Attributes
|
|
9
15
|
|
|
10
|
-
| Properties | Attributes | Modifiers | Type | Default | Description
|
|
11
|
-
| -------------- | -------------- | --------- | ------- | ------- |
|
|
12
|
-
|
|
|
13
|
-
|
|
|
14
|
-
| label | label | | string | |
|
|
15
|
-
|
|
|
16
|
+
| Properties | Attributes | Modifiers | Type | Default | Description |
|
|
17
|
+
| -------------- | -------------- | --------- | ------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
18
|
+
| displayArrows | displayarrows | | boolean | | Shows the left and right scroll buttons at all times, instead of only when there's more content to scroll to in that direction. The buttons stay hidden on small screens. |
|
|
19
|
+
| scrollDistance | scrolldistance | | number | `300` | Sets how many pixels the carousel scrolls when someone selects the left or right button. |
|
|
20
|
+
| label | label | | string | | Deprecated: Use the `ariaLabel` slot instead.<br>Sets the text that screen readers announce as the carousel's name. |
|
|
21
|
+
| | centerselected | | boolean | | Centers the carousel on the first element that has the `selected` attribute when the carousel first renders. |
|
|
16
22
|
|
|
17
23
|
### Methods
|
|
18
24
|
|
|
19
|
-
| Name | Parameters | Return | Description
|
|
20
|
-
| ---------------- | -------------------------------------------------------------------------------------------------------------------------------- | ------ |
|
|
21
|
-
| centerElement | `el` (Element) - The element to center inside the carousel. Must be a descendant of the carousel. | void | Centers the given element inside the carousel.
|
|
22
|
-
| register | `name` (string) - The name
|
|
23
|
-
| scrollCarousel | `num` (number) - The number of pixels to scroll the carousel by. Positive scrolls to the<br>right, negative scrolls to the left. | void | Scrolls the carousel by the given amount.
|
|
24
|
-
| scrollToSelected | None | void |
|
|
25
|
+
| Name | Parameters | Return | Description |
|
|
26
|
+
| ---------------- | -------------------------------------------------------------------------------------------------------------------------------- | ------ | ------------------------------------------------------------------------------------------ |
|
|
27
|
+
| centerElement | `el` (Element) - The element to center inside the carousel. Must be a descendant of the carousel. | void | Centers the given element inside the carousel. |
|
|
28
|
+
| register | `name` (string) - The tag name to register the element under. | void | Registers the element with the browser under a tag name. |
|
|
29
|
+
| scrollCarousel | `num` (number) - The number of pixels to scroll the carousel by. Positive scrolls to the<br>right, negative scrolls to the left. | void | Scrolls the carousel by the given amount. |
|
|
30
|
+
| scrollToSelected | None | void | Scrolls the first element that has the `selected` attribute to the center of the carousel. |
|
|
25
31
|
|
|
26
32
|
### Events
|
|
27
33
|
|
|
28
|
-
| Name | Description
|
|
29
|
-
| ----------- |
|
|
30
|
-
| scrollLeft | Dispatched when
|
|
31
|
-
| scrollRight | Dispatched when
|
|
34
|
+
| Name | Description |
|
|
35
|
+
| ----------- | -------------------------------------------------------- |
|
|
36
|
+
| scrollLeft | Dispatched when someone selects the left scroll button. |
|
|
37
|
+
| scrollRight | Dispatched when someone selects the right scroll button. |
|
|
32
38
|
|
|
33
39
|
### Slots
|
|
34
40
|
|
|
35
|
-
| Name | Description
|
|
36
|
-
| ---------------------- |
|
|
37
|
-
| (default) |
|
|
38
|
-
| ariaLabel | Text
|
|
39
|
-
| ariaLabel.scroll.left | Text
|
|
40
|
-
| ariaLabel.scroll.right | Text
|
|
41
|
+
| Name | Description |
|
|
42
|
+
| ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
|
|
43
|
+
| (default) | The elements to scroll through, such as `auro-pane` elements or images. |
|
|
44
|
+
| ariaLabel | Text that screen readers announce as the carousel's name, for example "Flight date options". Takes priority over the `label` attribute. |
|
|
45
|
+
| ariaLabel.scroll.left | Text that screen readers announce for the left scroll button, for example "Show earlier dates". Defaults to "Scroll Left". |
|
|
46
|
+
| ariaLabel.scroll.right | Text that screen readers announce for the right scroll button, for example "Show later dates". Defaults to "Scroll Right". |
|
|
41
47
|
|
|
42
48
|
### CSS Shadow Parts
|
|
43
49
|
|
|
44
|
-
| Name | Description
|
|
45
|
-
| ------- |
|
|
46
|
-
| wrapper | The
|
|
50
|
+
| Name | Description |
|
|
51
|
+
| ------- | ------------------------------------------------------------------------------ |
|
|
52
|
+
| wrapper | The scrollable `<div>` that wraps the scroll buttons and the slotted elements. |
|
|
53
|
+
|
|
54
|
+
### CSS Custom Properties
|
|
55
|
+
|
|
56
|
+
| Name | Description |
|
|
57
|
+
| ------------------------------------- | -------------------------------------------------------------------- |
|
|
58
|
+
| --ds-auro-carousel-gradient-color-one | Color at the outer edge of the fade shown beside each scroll button. |
|
|
59
|
+
| --ds-auro-carousel-gradient-color-two | Color at the inner edge of the fade shown beside each scroll button. |
|
|
47
60
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
48
61
|
|
|
49
62
|
## Basic
|
|
50
63
|
|
|
51
64
|
<div class="exampleWrapper">
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
66
|
+
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
67
|
+
<auro-carousel>
|
|
68
|
+
<span slot="ariaLabel">Flight date options</span>
|
|
69
|
+
<auro-pane date="2020-10-10" price="$435"></auro-pane>
|
|
70
|
+
<auro-pane date="2020-10-11" price="$435"></auro-pane>
|
|
71
|
+
<auro-pane date="2020-10-12" price="$435"></auro-pane>
|
|
72
|
+
<auro-pane date="2020-10-13" price="$435"></auro-pane>
|
|
73
|
+
<auro-pane date="2020-10-14" price="$435"></auro-pane>
|
|
74
|
+
<auro-pane date="2020-10-15" price="$435"></auro-pane>
|
|
75
|
+
<auro-pane date="2020-10-16" price="$435"></auro-pane>
|
|
76
|
+
<auro-pane date="2020-10-17" price="$435"></auro-pane>
|
|
77
|
+
<auro-pane date="2020-10-18" selected price="$435"></auro-pane>
|
|
78
|
+
<auro-pane date="2020-10-19" price="$435"></auro-pane>
|
|
79
|
+
<auro-pane date="2020-10-20" price="$435"></auro-pane>
|
|
80
|
+
<auro-pane date="2020-10-21" price="$435"></auro-pane>
|
|
81
|
+
<auro-pane date="2020-10-22" price="$435"></auro-pane>
|
|
82
|
+
<auro-pane date="2020-10-23" price="$435"></auro-pane>
|
|
83
|
+
</auro-carousel>
|
|
84
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
71
85
|
</div>
|
|
72
86
|
<auro-accordion alignRight>
|
|
73
|
-
|
|
87
|
+
<span slot="trigger">See code</span>
|
|
74
88
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
|
|
75
89
|
<!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
|
|
76
90
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
```
|
|
91
|
+
<pre class="language-html"><code class="language-html"><auro-carousel>
|
|
92
|
+
<span slot="ariaLabel">Flight date options</span>
|
|
93
|
+
<auro-pane date="2020-10-10" price="$435"></auro-pane>
|
|
94
|
+
<auro-pane date="2020-10-11" price="$435"></auro-pane>
|
|
95
|
+
<auro-pane date="2020-10-12" price="$435"></auro-pane>
|
|
96
|
+
<auro-pane date="2020-10-13" price="$435"></auro-pane>
|
|
97
|
+
<auro-pane date="2020-10-14" price="$435"></auro-pane>
|
|
98
|
+
<auro-pane date="2020-10-15" price="$435"></auro-pane>
|
|
99
|
+
<auro-pane date="2020-10-16" price="$435"></auro-pane>
|
|
100
|
+
<auro-pane date="2020-10-17" price="$435"></auro-pane>
|
|
101
|
+
<auro-pane date="2020-10-18" selected price="$435"></auro-pane>
|
|
102
|
+
<auro-pane date="2020-10-19" price="$435"></auro-pane>
|
|
103
|
+
<auro-pane date="2020-10-20" price="$435"></auro-pane>
|
|
104
|
+
<auro-pane date="2020-10-21" price="$435"></auro-pane>
|
|
105
|
+
<auro-pane date="2020-10-22" price="$435"></auro-pane>
|
|
106
|
+
<auro-pane date="2020-10-23" price="$435"></auro-pane>
|
|
107
|
+
</auro-carousel></code></pre>
|
|
95
108
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
96
109
|
</auro-accordion>
|
|
97
110
|
|
|
98
111
|
## Property & Attribute Examples
|
|
99
112
|
|
|
100
|
-
#### Center
|
|
113
|
+
#### Center selected
|
|
101
114
|
|
|
102
|
-
|
|
115
|
+
Add the `centerSelected` attribute to scroll the first element with the `selected` attribute to the center when the carousel first renders.
|
|
103
116
|
|
|
104
117
|
<div class="exampleWrapper">
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
118
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/center-selected.html) -->
|
|
119
|
+
<!-- The below content is automatically added from ./../apiExamples/center-selected.html -->
|
|
120
|
+
<auro-carousel centerSelected>
|
|
121
|
+
<span slot="ariaLabel">Flight date options</span>
|
|
122
|
+
<auro-pane date="2020-10-10" price="$435"></auro-pane>
|
|
123
|
+
<auro-pane date="2020-10-11" price="$435"></auro-pane>
|
|
124
|
+
<auro-pane date="2020-10-12" price="$435"></auro-pane>
|
|
125
|
+
<auro-pane date="2020-10-13" price="$435"></auro-pane>
|
|
126
|
+
<auro-pane date="2020-10-14" price="$435"></auro-pane>
|
|
127
|
+
<auro-pane date="2020-10-15" price="$435"></auro-pane>
|
|
128
|
+
<auro-pane date="2020-10-16" price="$435"></auro-pane>
|
|
129
|
+
<auro-pane date="2020-10-17" price="$435"></auro-pane>
|
|
130
|
+
<auro-pane date="2020-10-18" selected price="$435"></auro-pane>
|
|
131
|
+
<auro-pane date="2020-10-19" price="$435"></auro-pane>
|
|
132
|
+
<auro-pane date="2020-10-20" price="$435"></auro-pane>
|
|
133
|
+
<auro-pane date="2020-10-21" price="$435"></auro-pane>
|
|
134
|
+
<auro-pane date="2020-10-22" price="$435"></auro-pane>
|
|
135
|
+
<auro-pane date="2020-10-23" price="$435"></auro-pane>
|
|
136
|
+
</auro-carousel>
|
|
137
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
124
138
|
</div>
|
|
125
139
|
<auro-accordion alignRight>
|
|
126
|
-
|
|
140
|
+
<span slot="trigger">See code</span>
|
|
127
141
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/center-selected.html) -->
|
|
128
142
|
<!-- The below code snippet is automatically added from ./../apiExamples/center-selected.html -->
|
|
129
143
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
```
|
|
144
|
+
<pre class="language-html"><code class="language-html"><auro-carousel centerSelected>
|
|
145
|
+
<span slot="ariaLabel">Flight date options</span>
|
|
146
|
+
<auro-pane date="2020-10-10" price="$435"></auro-pane>
|
|
147
|
+
<auro-pane date="2020-10-11" price="$435"></auro-pane>
|
|
148
|
+
<auro-pane date="2020-10-12" price="$435"></auro-pane>
|
|
149
|
+
<auro-pane date="2020-10-13" price="$435"></auro-pane>
|
|
150
|
+
<auro-pane date="2020-10-14" price="$435"></auro-pane>
|
|
151
|
+
<auro-pane date="2020-10-15" price="$435"></auro-pane>
|
|
152
|
+
<auro-pane date="2020-10-16" price="$435"></auro-pane>
|
|
153
|
+
<auro-pane date="2020-10-17" price="$435"></auro-pane>
|
|
154
|
+
<auro-pane date="2020-10-18" selected price="$435"></auro-pane>
|
|
155
|
+
<auro-pane date="2020-10-19" price="$435"></auro-pane>
|
|
156
|
+
<auro-pane date="2020-10-20" price="$435"></auro-pane>
|
|
157
|
+
<auro-pane date="2020-10-21" price="$435"></auro-pane>
|
|
158
|
+
<auro-pane date="2020-10-22" price="$435"></auro-pane>
|
|
159
|
+
<auro-pane date="2020-10-23" price="$435"></auro-pane>
|
|
160
|
+
</auro-carousel></code></pre>
|
|
148
161
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
149
162
|
</auro-accordion>
|
|
150
163
|
|
|
151
|
-
#### Display
|
|
164
|
+
#### Display arrows
|
|
152
165
|
|
|
153
|
-
|
|
166
|
+
Add the `displayArrows` attribute to always show the left and right scroll buttons, whatever the scroll position. The buttons stay hidden on small screens.
|
|
154
167
|
|
|
155
168
|
<div class="exampleWrapper">
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
169
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/display-arrows.html) -->
|
|
170
|
+
<!-- The below content is automatically added from ./../apiExamples/display-arrows.html -->
|
|
171
|
+
<auro-carousel displayArrows>
|
|
172
|
+
<span slot="ariaLabel">Flight date options</span>
|
|
173
|
+
<auro-pane date="2021-10-01"></auro-pane>
|
|
174
|
+
<auro-pane date="2021-10-02"></auro-pane>
|
|
175
|
+
<auro-pane date="2021-10-03"></auro-pane>
|
|
176
|
+
<auro-pane date="2021-10-04"></auro-pane>
|
|
177
|
+
<auro-pane date="2021-10-05"></auro-pane>
|
|
178
|
+
<auro-pane date="2021-10-06"></auro-pane>
|
|
179
|
+
<auro-pane date="2021-10-07"></auro-pane>
|
|
180
|
+
<auro-pane date="2021-10-08"></auro-pane>
|
|
181
|
+
<auro-pane date="2021-10-09"></auro-pane>
|
|
182
|
+
<auro-pane date="2021-10-10"></auro-pane>
|
|
183
|
+
<auro-pane date="2021-10-11"></auro-pane>
|
|
184
|
+
<auro-pane date="2021-10-12" selected></auro-pane>
|
|
185
|
+
<auro-pane date="2021-10-13"></auro-pane>
|
|
186
|
+
<auro-pane date="2021-10-14"></auro-pane>
|
|
187
|
+
<auro-pane date="2021-10-15"></auro-pane>
|
|
188
|
+
<auro-pane date="2021-10-16"></auro-pane>
|
|
189
|
+
<auro-pane date="2021-10-17"></auro-pane>
|
|
190
|
+
<auro-pane date="2021-10-18"></auro-pane>
|
|
191
|
+
<auro-pane date="2021-10-19"></auro-pane>
|
|
192
|
+
<auro-pane date="2021-10-20"></auro-pane>
|
|
193
|
+
<auro-pane date="2021-10-21"></auro-pane>
|
|
194
|
+
<auro-pane date="2021-10-22"></auro-pane>
|
|
195
|
+
<auro-pane date="2021-10-23"></auro-pane>
|
|
196
|
+
<auro-pane date="2021-10-24"></auro-pane>
|
|
197
|
+
<auro-pane date="2021-10-25"></auro-pane>
|
|
198
|
+
<auro-pane date="2021-10-26"></auro-pane>
|
|
199
|
+
<auro-pane date="2021-10-27"></auro-pane>
|
|
200
|
+
<auro-pane date="2021-10-28"></auro-pane>
|
|
201
|
+
</auro-carousel>
|
|
202
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
189
203
|
</div>
|
|
190
204
|
<auro-accordion alignRight>
|
|
191
|
-
|
|
205
|
+
<span slot="trigger">See code</span>
|
|
192
206
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/display-arrows.html) -->
|
|
193
207
|
<!-- The below code snippet is automatically added from ./../apiExamples/display-arrows.html -->
|
|
194
208
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
```
|
|
209
|
+
<pre class="language-html"><code class="language-html"><auro-carousel displayArrows>
|
|
210
|
+
<span slot="ariaLabel">Flight date options</span>
|
|
211
|
+
<auro-pane date="2021-10-01"></auro-pane>
|
|
212
|
+
<auro-pane date="2021-10-02"></auro-pane>
|
|
213
|
+
<auro-pane date="2021-10-03"></auro-pane>
|
|
214
|
+
<auro-pane date="2021-10-04"></auro-pane>
|
|
215
|
+
<auro-pane date="2021-10-05"></auro-pane>
|
|
216
|
+
<auro-pane date="2021-10-06"></auro-pane>
|
|
217
|
+
<auro-pane date="2021-10-07"></auro-pane>
|
|
218
|
+
<auro-pane date="2021-10-08"></auro-pane>
|
|
219
|
+
<auro-pane date="2021-10-09"></auro-pane>
|
|
220
|
+
<auro-pane date="2021-10-10"></auro-pane>
|
|
221
|
+
<auro-pane date="2021-10-11"></auro-pane>
|
|
222
|
+
<auro-pane date="2021-10-12" selected></auro-pane>
|
|
223
|
+
<auro-pane date="2021-10-13"></auro-pane>
|
|
224
|
+
<auro-pane date="2021-10-14"></auro-pane>
|
|
225
|
+
<auro-pane date="2021-10-15"></auro-pane>
|
|
226
|
+
<auro-pane date="2021-10-16"></auro-pane>
|
|
227
|
+
<auro-pane date="2021-10-17"></auro-pane>
|
|
228
|
+
<auro-pane date="2021-10-18"></auro-pane>
|
|
229
|
+
<auro-pane date="2021-10-19"></auro-pane>
|
|
230
|
+
<auro-pane date="2021-10-20"></auro-pane>
|
|
231
|
+
<auro-pane date="2021-10-21"></auro-pane>
|
|
232
|
+
<auro-pane date="2021-10-22"></auro-pane>
|
|
233
|
+
<auro-pane date="2021-10-23"></auro-pane>
|
|
234
|
+
<auro-pane date="2021-10-24"></auro-pane>
|
|
235
|
+
<auro-pane date="2021-10-25"></auro-pane>
|
|
236
|
+
<auro-pane date="2021-10-26"></auro-pane>
|
|
237
|
+
<auro-pane date="2021-10-27"></auro-pane>
|
|
238
|
+
<auro-pane date="2021-10-28"></auro-pane>
|
|
239
|
+
</auro-carousel></code></pre>
|
|
227
240
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
228
241
|
</auro-accordion>
|
|
229
242
|
|
|
230
|
-
#### Scroll
|
|
243
|
+
#### Scroll distance
|
|
231
244
|
|
|
232
|
-
Use the `scrollDistance` attribute to
|
|
245
|
+
Use the `scrollDistance` attribute to set how many pixels the carousel scrolls when someone selects the left or right button.
|
|
233
246
|
|
|
234
247
|
<div class="exampleWrapper">
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
248
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/scroll-distance.html) -->
|
|
249
|
+
<!-- The below content is automatically added from ./../apiExamples/scroll-distance.html -->
|
|
250
|
+
<auro-carousel scrollDistance="200">
|
|
251
|
+
<span slot="ariaLabel">Flight date options</span>
|
|
252
|
+
<auro-pane date="2020-10-10" price="$435"></auro-pane>
|
|
253
|
+
<auro-pane date="2020-10-11" price="$435"></auro-pane>
|
|
254
|
+
<auro-pane date="2020-10-12" price="$435"></auro-pane>
|
|
255
|
+
<auro-pane date="2020-10-13" selected price="$435"></auro-pane>
|
|
256
|
+
<auro-pane date="2020-10-14" price="$435"></auro-pane>
|
|
257
|
+
<auro-pane date="2020-10-15" price="$435"></auro-pane>
|
|
258
|
+
<auro-pane date="2020-10-16" price="$435"></auro-pane>
|
|
259
|
+
<auro-pane date="2020-10-17" price="$435"></auro-pane>
|
|
260
|
+
<auro-pane date="2020-10-18" price="$435"></auro-pane>
|
|
261
|
+
<auro-pane date="2020-10-19" price="$435"></auro-pane>
|
|
262
|
+
<auro-pane date="2020-10-20" price="$435"></auro-pane>
|
|
263
|
+
<auro-pane date="2020-10-21" price="$435"></auro-pane>
|
|
264
|
+
<auro-pane date="2020-10-22" price="$435"></auro-pane>
|
|
265
|
+
<auro-pane date="2020-10-23" price="$435"></auro-pane>
|
|
266
|
+
</auro-carousel>
|
|
267
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
254
268
|
</div>
|
|
255
269
|
<auro-accordion alignRight>
|
|
256
|
-
|
|
270
|
+
<span slot="trigger">See code</span>
|
|
257
271
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/scroll-distance.html) -->
|
|
258
272
|
<!-- The below code snippet is automatically added from ./../apiExamples/scroll-distance.html -->
|
|
259
273
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
```
|
|
274
|
+
<pre class="language-html"><code class="language-html"><auro-carousel scrollDistance="200">
|
|
275
|
+
<span slot="ariaLabel">Flight date options</span>
|
|
276
|
+
<auro-pane date="2020-10-10" price="$435"></auro-pane>
|
|
277
|
+
<auro-pane date="2020-10-11" price="$435"></auro-pane>
|
|
278
|
+
<auro-pane date="2020-10-12" price="$435"></auro-pane>
|
|
279
|
+
<auro-pane date="2020-10-13" selected price="$435"></auro-pane>
|
|
280
|
+
<auro-pane date="2020-10-14" price="$435"></auro-pane>
|
|
281
|
+
<auro-pane date="2020-10-15" price="$435"></auro-pane>
|
|
282
|
+
<auro-pane date="2020-10-16" price="$435"></auro-pane>
|
|
283
|
+
<auro-pane date="2020-10-17" price="$435"></auro-pane>
|
|
284
|
+
<auro-pane date="2020-10-18" price="$435"></auro-pane>
|
|
285
|
+
<auro-pane date="2020-10-19" price="$435"></auro-pane>
|
|
286
|
+
<auro-pane date="2020-10-20" price="$435"></auro-pane>
|
|
287
|
+
<auro-pane date="2020-10-21" price="$435"></auro-pane>
|
|
288
|
+
<auro-pane date="2020-10-22" price="$435"></auro-pane>
|
|
289
|
+
<auro-pane date="2020-10-23" price="$435"></auro-pane>
|
|
290
|
+
</auro-carousel></code></pre>
|
|
278
291
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
279
292
|
</auro-accordion>
|
|
280
293
|
|
|
281
294
|
## Method Examples
|
|
282
295
|
|
|
283
|
-
#### Center
|
|
296
|
+
#### Center element
|
|
284
297
|
|
|
285
|
-
|
|
298
|
+
Use the `centerElement` method to center an element inside the carousel, such as a pane when someone selects it. The element must be a descendant of the carousel, or the method throws an error. The carousel can only center the element when there's enough content on both sides of it.
|
|
286
299
|
|
|
287
|
-
This
|
|
300
|
+
This example doesn't use `centerSelected`, so it doesn't center the selected pane on load. The method doesn't run on its own, so call it from an event handler, such as a click listener. The code below shows a vanilla JS example and a React example.
|
|
288
301
|
|
|
289
302
|
<div class="exampleWrapper">
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
303
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/center-element.html) -->
|
|
304
|
+
<!-- The below content is automatically added from ./../apiExamples/center-element.html -->
|
|
305
|
+
<auro-carousel id="centerElement">
|
|
306
|
+
<span slot="ariaLabel">Flight date options</span>
|
|
307
|
+
<auro-pane date="2021-10-01"></auro-pane>
|
|
308
|
+
<auro-pane date="2021-10-02"></auro-pane>
|
|
309
|
+
<auro-pane date="2021-10-03"></auro-pane>
|
|
310
|
+
<auro-pane date="2021-10-04"></auro-pane>
|
|
311
|
+
<auro-pane date="2021-10-05"></auro-pane>
|
|
312
|
+
<auro-pane date="2021-10-06"></auro-pane>
|
|
313
|
+
<auro-pane date="2021-10-07"></auro-pane>
|
|
314
|
+
<auro-pane date="2021-10-08"></auro-pane>
|
|
315
|
+
<auro-pane date="2021-10-09"></auro-pane>
|
|
316
|
+
<auro-pane date="2021-10-10"></auro-pane>
|
|
317
|
+
<auro-pane date="2021-10-11"></auro-pane>
|
|
318
|
+
<auro-pane date="2021-10-12" selected></auro-pane>
|
|
319
|
+
<auro-pane date="2021-10-13"></auro-pane>
|
|
320
|
+
<auro-pane date="2021-10-14"></auro-pane>
|
|
321
|
+
<auro-pane date="2021-10-15"></auro-pane>
|
|
322
|
+
<auro-pane date="2021-10-16"></auro-pane>
|
|
323
|
+
<auro-pane date="2021-10-17"></auro-pane>
|
|
324
|
+
<auro-pane date="2021-10-18"></auro-pane>
|
|
325
|
+
<auro-pane date="2021-10-19"></auro-pane>
|
|
326
|
+
<auro-pane date="2021-10-20"></auro-pane>
|
|
327
|
+
<auro-pane date="2021-10-21"></auro-pane>
|
|
328
|
+
<auro-pane date="2021-10-22"></auro-pane>
|
|
329
|
+
<auro-pane date="2021-10-23"></auro-pane>
|
|
330
|
+
<auro-pane date="2021-10-24"></auro-pane>
|
|
331
|
+
<auro-pane date="2021-10-25"></auro-pane>
|
|
332
|
+
<auro-pane date="2021-10-26"></auro-pane>
|
|
333
|
+
<auro-pane date="2021-10-27"></auro-pane>
|
|
334
|
+
<auro-pane date="2021-10-28"></auro-pane>
|
|
335
|
+
</auro-carousel>
|
|
336
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
323
337
|
</div>
|
|
324
338
|
<auro-accordion alignRight>
|
|
325
|
-
|
|
339
|
+
<span slot="trigger">See code</span>
|
|
326
340
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/center-element.html) -->
|
|
327
341
|
<!-- The below code snippet is automatically added from ./../apiExamples/center-element.html -->
|
|
328
342
|
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
```
|
|
343
|
+
<pre class="language-html"><code class="language-html"><auro-carousel id="centerElement">
|
|
344
|
+
<span slot="ariaLabel">Flight date options</span>
|
|
345
|
+
<auro-pane date="2021-10-01"></auro-pane>
|
|
346
|
+
<auro-pane date="2021-10-02"></auro-pane>
|
|
347
|
+
<auro-pane date="2021-10-03"></auro-pane>
|
|
348
|
+
<auro-pane date="2021-10-04"></auro-pane>
|
|
349
|
+
<auro-pane date="2021-10-05"></auro-pane>
|
|
350
|
+
<auro-pane date="2021-10-06"></auro-pane>
|
|
351
|
+
<auro-pane date="2021-10-07"></auro-pane>
|
|
352
|
+
<auro-pane date="2021-10-08"></auro-pane>
|
|
353
|
+
<auro-pane date="2021-10-09"></auro-pane>
|
|
354
|
+
<auro-pane date="2021-10-10"></auro-pane>
|
|
355
|
+
<auro-pane date="2021-10-11"></auro-pane>
|
|
356
|
+
<auro-pane date="2021-10-12" selected></auro-pane>
|
|
357
|
+
<auro-pane date="2021-10-13"></auro-pane>
|
|
358
|
+
<auro-pane date="2021-10-14"></auro-pane>
|
|
359
|
+
<auro-pane date="2021-10-15"></auro-pane>
|
|
360
|
+
<auro-pane date="2021-10-16"></auro-pane>
|
|
361
|
+
<auro-pane date="2021-10-17"></auro-pane>
|
|
362
|
+
<auro-pane date="2021-10-18"></auro-pane>
|
|
363
|
+
<auro-pane date="2021-10-19"></auro-pane>
|
|
364
|
+
<auro-pane date="2021-10-20"></auro-pane>
|
|
365
|
+
<auro-pane date="2021-10-21"></auro-pane>
|
|
366
|
+
<auro-pane date="2021-10-22"></auro-pane>
|
|
367
|
+
<auro-pane date="2021-10-23"></auro-pane>
|
|
368
|
+
<auro-pane date="2021-10-24"></auro-pane>
|
|
369
|
+
<auro-pane date="2021-10-25"></auro-pane>
|
|
370
|
+
<auro-pane date="2021-10-26"></auro-pane>
|
|
371
|
+
<auro-pane date="2021-10-27"></auro-pane>
|
|
372
|
+
<auro-pane date="2021-10-28"></auro-pane>
|
|
373
|
+
</auro-carousel></code></pre>
|
|
361
374
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
362
375
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/center-element.js) -->
|
|
363
376
|
<!-- The below code snippet is automatically added from ./../apiExamples/center-element.js -->
|
|
364
377
|
|
|
365
|
-
|
|
366
|
-
// Vanilla JS example
|
|
378
|
+
<pre class="language-js"><code class="language-js">// Vanilla JS example
|
|
367
379
|
// -------------------------
|
|
368
|
-
|
|
369
|
-
export function centerElementExample() {
|
|
380
|
+
export function centerElementExample() {
|
|
370
381
|
const carousel = document.querySelector("auro-carousel#centerElement");
|
|
371
382
|
const panes = carousel.querySelectorAll("auro-pane");
|
|
372
383
|
let selectedPane = carousel.querySelector("auro-pane[selected]");
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
pane.addEventListener("click", () => {
|
|
384
|
+
panes.forEach((pane) =>
|
|
385
|
+
pane.addEventListener("click", () => {
|
|
376
386
|
selectedPane.selected = false;
|
|
377
387
|
pane.selected = true;
|
|
378
388
|
selectedPane = pane;
|
|
379
389
|
carousel.centerElement(selectedPane);
|
|
380
390
|
}),
|
|
381
391
|
);
|
|
382
|
-
}
|
|
383
|
-
```
|
|
392
|
+
}</code></pre>
|
|
384
393
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
385
394
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/center-element-react.js) -->
|
|
386
395
|
<!-- The below code snippet is automatically added from ./../apiExamples/center-element-react.js -->
|
|
387
396
|
|
|
388
|
-
|
|
389
|
-
// React example
|
|
397
|
+
<pre class="language-js"><code class="language-js">// React example
|
|
390
398
|
// -------------------------
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
{days.map((day, idx) => (
|
|
399
|
+
const days = [...Array(28).keys()];
|
|
400
|
+
<auro-carousel ref={this.centerCarouselRef}>
|
|
401
|
+
<span slot="ariaLabel">Flight date options</span>
|
|
402
|
+
{days.map((day, idx) => (
|
|
396
403
|
//biome-ignore lint: not going to change the onclick event
|
|
397
|
-
|
|
404
|
+
<auro-pane
|
|
398
405
|
key={day}
|
|
399
406
|
date={`2021-10-${(day + 1).toString().padStart(2, 0)}`}
|
|
400
407
|
selected={this.state.centerSelectedDay === idx ? true : undefined}
|
|
401
|
-
onClick={({ target })
|
|
408
|
+
onClick={({ target }) => {
|
|
402
409
|
this.setState({ centerSelectedDay: idx });
|
|
403
410
|
this.centerCarouselRef.current.centerElement(target);
|
|
404
411
|
}}
|
|
405
|
-
|
|
412
|
+
/>
|
|
406
413
|
))}
|
|
407
|
-
|
|
408
|
-
```
|
|
414
|
+
</auro-carousel>;</code></pre>
|
|
409
415
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
410
416
|
</auro-accordion>
|
|
411
417
|
|
|
412
418
|
## Slot Examples
|
|
413
419
|
|
|
414
|
-
### Aria
|
|
420
|
+
### Aria label slots
|
|
415
421
|
|
|
416
|
-
Use the `ariaLabel`, `ariaLabel.scroll.left`, and `ariaLabel.scroll.right` slots to customize the accessible names for the carousel
|
|
422
|
+
Use the `ariaLabel`, `ariaLabel.scroll.left`, and `ariaLabel.scroll.right` slots to customize the accessible names for the carousel and its left and right scroll buttons.
|
|
417
423
|
|
|
418
|
-
**Note:**
|
|
424
|
+
**Note:** Don't add the `aria-label` attribute to the `auro-carousel` element itself. The carousel takes its accessible name from the `ariaLabel` slot, not from that attribute.
|
|
419
425
|
|
|
420
426
|
<div class="exampleWrapper">
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
427
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/aria-label-slots.html) -->
|
|
428
|
+
<!-- The below content is automatically added from ./../apiExamples/aria-label-slots.html -->
|
|
429
|
+
<auro-carousel centerSelected>
|
|
430
|
+
<span slot="ariaLabel">Flight date options</span>
|
|
431
|
+
<span slot="ariaLabel.scroll.left">Show earlier dates</span>
|
|
432
|
+
<span slot="ariaLabel.scroll.right">Show later dates</span>
|
|
433
|
+
<auro-pane date="2020-10-10" price="$435"></auro-pane>
|
|
434
|
+
<auro-pane date="2020-10-11" price="$435"></auro-pane>
|
|
435
|
+
<auro-pane date="2020-10-12" price="$435"></auro-pane>
|
|
436
|
+
<auro-pane date="2020-10-13" price="$435"></auro-pane>
|
|
437
|
+
<auro-pane date="2020-10-14" price="$435"></auro-pane>
|
|
438
|
+
<auro-pane date="2020-10-15" price="$435"></auro-pane>
|
|
439
|
+
<auro-pane date="2020-10-16" price="$435"></auro-pane>
|
|
440
|
+
<auro-pane date="2020-10-17" price="$435"></auro-pane>
|
|
441
|
+
<auro-pane date="2020-10-18" selected price="$435"></auro-pane>
|
|
442
|
+
<auro-pane date="2020-10-19" price="$435"></auro-pane>
|
|
443
|
+
<auro-pane date="2020-10-20" price="$435"></auro-pane>
|
|
444
|
+
<auro-pane date="2020-10-21" price="$435"></auro-pane>
|
|
445
|
+
<auro-pane date="2020-10-22" price="$435"></auro-pane>
|
|
446
|
+
<auro-pane date="2020-10-23" price="$435"></auro-pane>
|
|
447
|
+
<auro-pane date="2020-10-24" price="$435"></auro-pane>
|
|
448
|
+
<auro-pane date="2020-10-25" price="$435"></auro-pane>
|
|
449
|
+
<auro-pane date="2020-10-26" price="$435"></auro-pane>
|
|
450
|
+
<auro-pane date="2020-10-27" price="$435"></auro-pane>
|
|
451
|
+
</auro-carousel>
|
|
452
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
447
453
|
</div>
|
|
448
454
|
<auro-accordion alignRight>
|
|
449
|
-
|
|
455
|
+
<span slot="trigger">See code</span>
|
|
450
456
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/aria-label-slots.html) -->
|
|
451
457
|
<!-- The below code snippet is automatically added from ./../apiExamples/aria-label-slots.html -->
|
|
452
458
|
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
</auro-carousel>
|
|
477
|
-
```
|
|
459
|
+
<pre class="language-html"><code class="language-html"><auro-carousel centerSelected>
|
|
460
|
+
<span slot="ariaLabel">Flight date options</span>
|
|
461
|
+
<span slot="ariaLabel.scroll.left">Show earlier dates</span>
|
|
462
|
+
<span slot="ariaLabel.scroll.right">Show later dates</span>
|
|
463
|
+
<auro-pane date="2020-10-10" price="$435"></auro-pane>
|
|
464
|
+
<auro-pane date="2020-10-11" price="$435"></auro-pane>
|
|
465
|
+
<auro-pane date="2020-10-12" price="$435"></auro-pane>
|
|
466
|
+
<auro-pane date="2020-10-13" price="$435"></auro-pane>
|
|
467
|
+
<auro-pane date="2020-10-14" price="$435"></auro-pane>
|
|
468
|
+
<auro-pane date="2020-10-15" price="$435"></auro-pane>
|
|
469
|
+
<auro-pane date="2020-10-16" price="$435"></auro-pane>
|
|
470
|
+
<auro-pane date="2020-10-17" price="$435"></auro-pane>
|
|
471
|
+
<auro-pane date="2020-10-18" selected price="$435"></auro-pane>
|
|
472
|
+
<auro-pane date="2020-10-19" price="$435"></auro-pane>
|
|
473
|
+
<auro-pane date="2020-10-20" price="$435"></auro-pane>
|
|
474
|
+
<auro-pane date="2020-10-21" price="$435"></auro-pane>
|
|
475
|
+
<auro-pane date="2020-10-22" price="$435"></auro-pane>
|
|
476
|
+
<auro-pane date="2020-10-23" price="$435"></auro-pane>
|
|
477
|
+
<auro-pane date="2020-10-24" price="$435"></auro-pane>
|
|
478
|
+
<auro-pane date="2020-10-25" price="$435"></auro-pane>
|
|
479
|
+
<auro-pane date="2020-10-26" price="$435"></auro-pane>
|
|
480
|
+
<auro-pane date="2020-10-27" price="$435"></auro-pane>
|
|
481
|
+
</auro-carousel></code></pre>
|
|
478
482
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
479
483
|
</auro-accordion>
|
|
480
484
|
|
|
481
|
-
## Restyle
|
|
485
|
+
## Restyle with CSS custom properties
|
|
482
486
|
|
|
483
|
-
|
|
487
|
+
Change the values of the following CSS custom properties to restyle the component.
|
|
484
488
|
|
|
485
489
|
<!-- Remove section if component does not have any component specific tokens -->
|
|
486
490
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../src/styles/tokens.scss) -->
|
|
487
491
|
<!-- The below code snippet is automatically added from ./../src/styles/tokens.scss -->
|
|
488
492
|
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
:host {
|
|
493
|
+
<pre class="language-scss"><code class="language-scss">@use "./../node_modules/@aurodesignsystem/design-tokens/dist/themes/alaska/SCSSVariables--alaska" as v;
|
|
494
|
+
:host {
|
|
493
495
|
--ds-auro-carousel-gradient-color-one: var(--ds-basic-color-surface-default, #{v.$ds-basic-color-surface-default});
|
|
494
496
|
--ds-auro-carousel-gradient-color-two: transparent;
|
|
495
|
-
}
|
|
496
|
-
```
|
|
497
|
+
}</code></pre>
|
|
497
498
|
<!-- AURO-GENERATED-CONTENT:END -->
|