@aurodesignsystem-dev/auro-banner 0.0.0-pr133.0 → 0.0.0-pr135.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/demo/api.md CHANGED
@@ -3,444 +3,455 @@
3
3
 
4
4
  # auro-banner
5
5
 
6
- The `auro-banner` element provides users a flexible way to convey a summary of information. The primary elements of a banner include an image, and details.
6
+ Highlights a short message with an image and a call to action, to draw attention or point people to more information.
7
+
8
+ **Key capabilities**:
9
+ - **Billboard layout**: Set `billboard` to show centered content over a large image.
10
+ - **Hero layout**: Set `hero` to show the text beside a large image, with short text above the title.
11
+ - **Icon layout**: Set `iconic` to show an icon in a circle below the text and image.
12
+ - **Marquee layout**: Set `marquee` to show the text beside a large image, with a smaller title.
13
+ - **Solid background**: Set `solid` with `marquee` to fill the banner with a dark color.
14
+ - **Bordered layout**: Set `roundedBorder` to show the content in a box with a thin, rounded border.
15
+ - **Dark backgrounds**: Set `appearance="inverse"` to show the text in light colors.
7
16
 
8
- ### Properties & Attributes
9
-
10
- | Properties | Attributes | Modifiers | Type | Default | Description |
11
- | ------------- | ------------- | --------- | ---------------------- | --------- | --------------------------------------------------------------------------------------------------- |
12
- | alignLeft | alignLeft | | boolean | | Use to align text to the left side of the banner |
13
- | alignRight | alignRight | | boolean | | Use to align text to the right side of the banner |
14
- | appearance | appearance | | `default` \| `inverse` | `default` | Defines whether the component will be on lighter or darker backgrounds |
15
- | billboard | billboard | | boolean | | Use to enable billboard style configuration |
16
- | hero | hero | | boolean | | Use to enable hero style configuration |
17
- | iconbg | iconbg | | string | | Use in conjunction with the iconic variant to specify the background color of the icon |
18
- | iconic | iconic | | boolean | | Used similarly to the `hero` variant, but adds an icon slot and removes the display image on mobile |
19
- | marquee | marquee | | boolean | | Use to enable marquee style configuration |
20
- | onDark | onDark | | boolean | | DEPRECATED - use `appearance="inverse"` instead. |
21
- | roundedBorder | roundedBorder | | boolean | | Use to enable rounded border style configuration |
22
- | slim | slim | | boolean | | Use to enable slimmer padding to the default banner |
23
- | solid | solid | | boolean | | Use to enable a solid background color as opposed to a transparent background |
17
+ ### Properties and attributes
18
+
19
+ | Properties | Attributes | Modifiers | Type | Default | Relevant when | Description |
20
+ | ------------- | ------------- | --------- | ---------------------- | --------- | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
21
+ | alignLeft | alignLeft | | boolean | | | Aligns the banner's content, such as the title, text, and call to action, to the left. |
22
+ | alignRight | alignRight | | boolean | | | Aligns the banner's content, such as the title, text, and call to action, to the right. |
23
+ | appearance | appearance | | `default` \| `inverse` | `default` | | Sets the text colors for the background behind the banner. Use `default` on light backgrounds and `inverse` on dark backgrounds, such as a dark image, to show the title and body text in light colors. |
24
+ | billboard | billboard | | boolean | | | Shows centered content over the `displayImage` slot's image. This is the most common banner layout. |
25
+ | hero | hero | | boolean | | | Shows the text on the left and the display image on the right, or the image above the text on small screens. Also shows the `prefix` slot above the title. |
26
+ | iconbg | iconbg | | string | | `iconic` | Sets the background color of the circle behind the icon, for example `var(--ds-basic-color-surface-neutral-medium)`. Applies only when `iconic` is set. Uses `--ds-auro-banner-icon-container-color` when not set. |
27
+ | iconic | iconic | | boolean | | | Shows the text on the left and the display image on the right, like `hero`, with the `icon` slot's content in a circle centered below the banner. Hides the display image on small screens and doesn't show the `prefix` slot. The `title` slot isn't wrapped in a heading, so put your own heading in it. |
28
+ | marquee | marquee | | boolean | | | Shows the text on the left and the display image on the right, like `hero`, with a smaller title and no `prefix` slot. Add `solid` for a dark background. |
29
+ | roundedBorder | roundedBorder | | boolean | | | Shows the content in a box with a thin, rounded border, with the `contentImage` slot's image beside the text on larger screens. Doesn't show the `displayImage` slot. |
30
+ | slim | slim | | boolean | | | Reduces the padding on the left and right of the text in a `billboard` banner on larger screens, so the text can run wider. In other layouts, it changes the padding around the text instead. |
31
+ | solid | solid | | boolean | | `marquee` | Fills the banner's background with a dark color and shows the text in light colors. Applies only when `marquee` is set. |
32
+ | onDark | onDark | | boolean | | | Deprecated: Use `appearance="inverse"` instead.<br>Shows the title and body text in light colors for dark backgrounds. |
24
33
 
25
34
  ### Methods
26
35
 
27
- | Name | Parameters | Return | Description |
28
- | -------- | -------------------------------------------------------------------- | ------ | ------------------------------------------------- |
29
- | register | `name` (string) - The name of the element that you want to register. | | This will register this element with the browser. |
36
+ | Name | Parameters | Return | Description |
37
+ | -------- | ------------------------------------------------------------- | ------ | --------------------------------------------------------------- |
38
+ | register | `name` (string) - The tag name to register the element under. | | Registers the element with the browser under a custom tag name. |
30
39
 
31
40
  ### Slots
32
41
 
33
- | Name | Description |
34
- | ------------ | ----------------------------------------------- |
35
- | action | call to action |
36
- | contentImage | image placement |
37
- | description | main body of content |
38
- | disclaimer | disclaimer copy |
39
- | displayImage | placement for `<picture />` or `<img>` elements |
40
- | prefix | placement for smaller text above title |
41
- | title | placement for header |
42
+ | Name | Relevant when | Description |
43
+ | ------------ | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
44
+ | action | | A call to action, such as an `auro-hyperlink` with `type="cta"`. |
45
+ | contentImage | | A smaller image, such as a logo, shown above the description. In a `roundedBorder` banner, it sits beside the text on larger screens. |
46
+ | description | | The main text of the banner. |
47
+ | disclaimer | | Fine print, shown in small text below the call to action. |
48
+ | displayImage | | A large `<picture>` or `<img>` element, shown behind or beside the text depending on the layout. A `roundedBorder` banner doesn't show it. |
49
+ | icon | `iconic` | An icon shown in a circle below the banner. |
50
+ | prefix | | Short text shown above the title. Only `hero` and `roundedBorder` banners show it. |
51
+ | title | | The banner's title, shown as a heading. An `iconic` banner doesn't wrap it in a heading, so add your own. |
52
+
53
+ ### CSS custom properties
54
+
55
+ | Name | Relevant when | Description |
56
+ | ---------------------------------------- | --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
57
+ | --ds-auro-banner-text-color | | Color of the banner's text. `appearance="inverse"` and `marquee` with `solid` change it to a light color. |
58
+ | --ds-auro-banner-title-text-color | | Color of the title and the `prefix` text. `appearance="inverse"` and `marquee` with `solid` change it to a light color. An `iconic` banner doesn't use it. |
59
+ | --ds-auro-banner-disclaimer-text-color | | Color of the `disclaimer` slot text. `appearance="inverse"` and `marquee` with `solid` change it to a light, muted color. |
60
+ | --ds-auro-banner-icon-container-color | `iconic` | Background color of the circle behind the icon. The `iconbg` attribute overrides it. |
61
+ | --ds-auro-banner-wrapper-container-color | `solid` | Background color of a `marquee` banner with `solid` set. |
62
+ | --ds-auro-banner-wrapper-border-color | `roundedBorder` | Color of the border around a `roundedBorder` banner. |
42
63
  <!-- AURO-GENERATED-CONTENT:END -->
43
64
 
44
- ## Property & Attribute Examples
65
+ ## Property and attribute examples
45
66
 
46
67
  ### Billboard
47
68
 
48
- The `billboard` property features a single configuration using the `displayImage`, `contentImage`, `description`, `action` and `disclaimer` slots for structured content placement. This is the most common use case for the `<auro-banner>` component.
69
+ The `billboard` layout shows centered content over the `displayImage` slot's image, with optional `contentImage`, `title`, `description`, `action`, and `disclaimer` slots. It's the most common banner layout.
49
70
 
50
71
  <div class="exampleWrapper">
51
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/basic.html) -->
52
- <!-- The below content is automatically added from ../apiExamples/basic.html -->
53
- <auro-banner billboard>
54
- <picture slot="displayImage">
55
- <source srcset="https://picsum.photos/id/196/1124/800" media="(min-width: 1024px)">
56
- <source srcset="https://picsum.photos/id/196/1124/1000" media="(min-width: 768px)">
57
- <source srcset="https://picsum.photos/id/196/736/750" media="(min-width: 736px)">
58
- <source srcset="https://picsum.photos/id/196/736/1400" media="(min-width: 375px)">
59
- <source srcset="https://picsum.photos/id/196/320/700" media="(min-width: 320px)">
60
- <img src="https://picsum.photos/id/196/225/550" alt="" />
61
- </picture>
62
- <img
72
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/basic.html) -->
73
+ <!-- The below content is automatically added from ../apiExamples/basic.html -->
74
+ <auro-banner billboard>
75
+ <picture slot="displayImage">
76
+ <source srcset="https://picsum.photos/id/196/1124/800" media="(min-width: 1024px)">
77
+ <source srcset="https://picsum.photos/id/196/1124/1000" media="(min-width: 768px)">
78
+ <source srcset="https://picsum.photos/id/196/736/750" media="(min-width: 736px)">
79
+ <source srcset="https://picsum.photos/id/196/736/1400" media="(min-width: 375px)">
80
+ <source srcset="https://picsum.photos/id/196/320/700" media="(min-width: 320px)">
81
+ <img src="https://picsum.photos/id/196/225/550" alt="" />
82
+ </picture>
83
+ <img
63
84
  slot="contentImage"
64
85
  src="https://images.contentstack.io/v3/assets/blt2cefe12c88e9dd91/bltc1fa673bb196d177/6633f3de693c294c708b20de/oneworld-travel-bright-Horizontal-300.png"
65
- alt="Random insert"/>
66
- <p slot="description">
86
+ alt="oneworld"/>
87
+ <p slot="description">
67
88
  We’ll explain any additional costs before you book your car rental. More details on what’s included? Just check the Ts&Cs of any car.
68
- </p>
69
- <auro-hyperlink
89
+ </p>
90
+ <auro-hyperlink
70
91
  type="cta"
71
92
  variant="secondary"
72
93
  href="/"
73
94
  slot="action"
74
95
  target="_blank">
75
96
  More info
76
- </auro-hyperlink>
77
- </auro-banner>
78
- <!-- AURO-GENERATED-CONTENT:END -->
97
+ </auro-hyperlink>
98
+ </auro-banner>
99
+ <!-- AURO-GENERATED-CONTENT:END -->
79
100
  </div>
80
101
  <auro-accordion alignRight>
81
- <span slot="trigger">See code</span>
102
+ <span slot="trigger">See code</span>
82
103
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/basic.html) -->
83
104
  <!-- The below code snippet is automatically added from ../apiExamples/basic.html -->
84
105
 
85
- ```html
86
- <auro-banner billboard>
87
- <picture slot="displayImage">
88
- <source srcset="https://picsum.photos/id/196/1124/800" media="(min-width: 1024px)">
89
- <source srcset="https://picsum.photos/id/196/1124/1000" media="(min-width: 768px)">
90
- <source srcset="https://picsum.photos/id/196/736/750" media="(min-width: 736px)">
91
- <source srcset="https://picsum.photos/id/196/736/1400" media="(min-width: 375px)">
92
- <source srcset="https://picsum.photos/id/196/320/700" media="(min-width: 320px)">
93
- <img src="https://picsum.photos/id/196/225/550" alt="" />
94
- </picture>
95
- <img
106
+ <pre class="language-html"><code class="language-html">&lt;auro-banner billboard&gt;
107
+ &lt;picture slot="displayImage"&gt;
108
+ &lt;source srcset="https://picsum.photos/id/196/1124/800" media="(min-width: 1024px)"&gt;
109
+ &lt;source srcset="https://picsum.photos/id/196/1124/1000" media="(min-width: 768px)"&gt;
110
+ &lt;source srcset="https://picsum.photos/id/196/736/750" media="(min-width: 736px)"&gt;
111
+ &lt;source srcset="https://picsum.photos/id/196/736/1400" media="(min-width: 375px)"&gt;
112
+ &lt;source srcset="https://picsum.photos/id/196/320/700" media="(min-width: 320px)"&gt;
113
+ &lt;img src="https://picsum.photos/id/196/225/550" alt="" /&gt;
114
+ &lt;/picture&gt;
115
+ &lt;img
96
116
  slot="contentImage"
97
117
  src="https://images.contentstack.io/v3/assets/blt2cefe12c88e9dd91/bltc1fa673bb196d177/6633f3de693c294c708b20de/oneworld-travel-bright-Horizontal-300.png"
98
- alt="Random insert"/>
99
- <p slot="description">
100
- We’ll explain any additional costs before you book your car rental. More details on what’s included? Just check the Ts&Cs of any car.
101
- </p>
102
- <auro-hyperlink
118
+ alt="oneworld"/&gt;
119
+ &lt;p slot="description"&gt;
120
+ We’ll explain any additional costs before you book your car rental. More details on what’s included? Just check the Ts&amp;Cs of any car.
121
+ &lt;/p&gt;
122
+ &lt;auro-hyperlink
103
123
  type="cta"
104
124
  variant="secondary"
105
125
  href="/"
106
126
  slot="action"
107
- target="_blank">
127
+ target="_blank"&gt;
108
128
  More info
109
- </auro-hyperlink>
110
- </auro-banner>
111
- ```
129
+ &lt;/auro-hyperlink&gt;
130
+ &lt;/auro-banner&gt;</code></pre>
112
131
  <!-- AURO-GENERATED-CONTENT:END -->
113
132
  </auro-accordion>
114
133
 
115
134
  ### Hero
116
135
 
117
- The following example illustrates the `hero` template style. This example also illustrates the use of the `prefix` slot.
136
+ The `hero` layout shows the text on the left and the display image on the right, or the image above the text on small screens. It also shows the `prefix` slot above the title.
118
137
 
119
138
  <div class="exampleWrapper">
120
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/hero.html) -->
121
- <!-- The below content is automatically added from ../apiExamples/hero.html -->
122
- <auro-banner hero>
123
- <picture slot="displayImage">
124
- <source srcset="https://picsum.photos/id/369/2048/2000" media="(min-width: 1024px)">
125
- <source srcset="https://picsum.photos/id/369/736/1400" media="(min-width:660px)">
126
- <img src="https://picsum.photos/id/369/660/420" alt="">
127
- </picture>
128
- <span slot="prefix">Duis aute irure dolor</span>
129
- <span slot="title">Duis aute irure dolor.<br>Excepteur sint occaecat.</span>
130
- <p slot="description">
139
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/hero.html) -->
140
+ <!-- The below content is automatically added from ../apiExamples/hero.html -->
141
+ <auro-banner hero>
142
+ <picture slot="displayImage">
143
+ <source srcset="https://picsum.photos/id/369/2048/2000" media="(min-width: 1024px)">
144
+ <source srcset="https://picsum.photos/id/369/736/1400" media="(min-width:660px)">
145
+ <img src="https://picsum.photos/id/369/660/420" alt="">
146
+ </picture>
147
+ <span slot="prefix">Duis aute irure dolor</span>
148
+ <span slot="title">Duis aute irure dolor.<br>Excepteur sint occaecat.</span>
149
+ <p slot="description">
131
150
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
132
- </p>
133
- <auro-hyperlink
151
+ </p>
152
+ <auro-hyperlink
134
153
  type="cta"
135
154
  href="/"
136
155
  slot="action"
137
156
  target="_blank">
138
157
  More info
139
- </auro-hyperlink>
140
- </auro-banner>
141
- <!-- AURO-GENERATED-CONTENT:END -->
158
+ </auro-hyperlink>
159
+ </auro-banner>
160
+ <!-- AURO-GENERATED-CONTENT:END -->
142
161
  </div>
143
162
  <auro-accordion alignRight>
144
- <span slot="trigger">See code</span>
163
+ <span slot="trigger">See code</span>
145
164
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/hero.html) -->
146
165
  <!-- The below code snippet is automatically added from ../apiExamples/hero.html -->
147
166
 
148
- ```html
149
- <auro-banner hero>
150
- <picture slot="displayImage">
151
- <source srcset="https://picsum.photos/id/369/2048/2000" media="(min-width: 1024px)">
152
- <source srcset="https://picsum.photos/id/369/736/1400" media="(min-width:660px)">
153
- <img src="https://picsum.photos/id/369/660/420" alt="">
154
- </picture>
155
- <span slot="prefix">Duis aute irure dolor</span>
156
- <span slot="title">Duis aute irure dolor.<br>Excepteur sint occaecat.</span>
157
- <p slot="description">
167
+ <pre class="language-html"><code class="language-html">&lt;auro-banner hero&gt;
168
+ &lt;picture slot="displayImage"&gt;
169
+ &lt;source srcset="https://picsum.photos/id/369/2048/2000" media="(min-width: 1024px)"&gt;
170
+ &lt;source srcset="https://picsum.photos/id/369/736/1400" media="(min-width:660px)"&gt;
171
+ &lt;img src="https://picsum.photos/id/369/660/420" alt=""&gt;
172
+ &lt;/picture&gt;
173
+ &lt;span slot="prefix"&gt;Duis aute irure dolor&lt;/span&gt;
174
+ &lt;span slot="title"&gt;Duis aute irure dolor.&lt;br&gt;Excepteur sint occaecat.&lt;/span&gt;
175
+ &lt;p slot="description"&gt;
158
176
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
159
- </p>
160
- <auro-hyperlink
177
+ &lt;/p&gt;
178
+ &lt;auro-hyperlink
161
179
  type="cta"
162
180
  href="/"
163
181
  slot="action"
164
- target="_blank">
182
+ target="_blank"&gt;
165
183
  More info
166
- </auro-hyperlink>
167
- </auro-banner>
168
- ```
184
+ &lt;/auro-hyperlink&gt;
185
+ &lt;/auro-banner&gt;</code></pre>
169
186
  <!-- AURO-GENERATED-CONTENT:END -->
170
187
  </auro-accordion>
171
188
 
172
189
  ### Iconic
173
190
 
174
- The `iconic` template style hides the `displayImage` on small screen sizes and only shows the icon.
191
+ The `iconic` layout shows an icon in a circle below the banner and hides the `displayImage` slot's image on small screens.
175
192
 
176
- Use the `iconbg` attribute to add a background color to the icon container.
193
+ Use the `iconbg` attribute to change the circle's background color.
177
194
 
178
195
  <div class="exampleWrapper">
179
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/iconic.html) -->
180
- <!-- The below content is automatically added from ../apiExamples/iconic.html -->
181
- <auro-banner iconic iconbg="var(ds-basic-color-surface-neutral-medium)">
182
- <picture slot="displayImage">
183
- <source srcset="https://picsum.photos/id/452/2800/2000.jpg" media="(min-width: 1054px)">
184
- <source srcset="https://picsum.photos/id/452/1500/2000" media="(min-width:660px)">
185
- <img src="https://picsum.photos/id/452/2800/2000.jpg" alt="">
186
- </picture>
187
- <span slot="icon">
188
- <auro-icon category="social" name="instagram" customSize customColor style="color: var(--ds-color-base-white); --ds-auro-icon-size: 5rem;"></auro-icon>
189
- </span>
190
- <span slot="title">
191
- <auro-header level="2" display="800" margin="both" size="none">Lorem ipsum title</auro-header>
192
- <auro-header level="3" display="300" margin="top" size="none">You can add multiple auro-header's here</auro-header>
193
- </span>
194
- <p slot="description">
196
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/iconic.html) -->
197
+ <!-- The below content is automatically added from ../apiExamples/iconic.html -->
198
+ <auro-banner iconic iconbg="var(--ds-basic-color-surface-neutral-medium)">
199
+ <picture slot="displayImage">
200
+ <source srcset="https://picsum.photos/id/452/2800/2000.jpg" media="(min-width: 1054px)">
201
+ <source srcset="https://picsum.photos/id/452/1500/2000" media="(min-width:660px)">
202
+ <img src="https://picsum.photos/id/452/2800/2000.jpg" alt="">
203
+ </picture>
204
+ <span slot="icon">
205
+ <auro-icon category="social" name="instagram" customSize customColor style="color: var(--ds-basic-color-texticon-inverse); --ds-auro-icon-size: 5rem;"></auro-icon>
206
+ </span>
207
+ <span slot="title">
208
+ <auro-header level="2" display="800" margin="both" size="none">Lorem ipsum title</auro-header>
209
+ <auro-header level="3" display="300" margin="top" size="none">Add more headings here</auro-header>
210
+ </span>
211
+ <p slot="description">
195
212
  Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam possimus, quod aperiam a aut fuga qui eos reprehenderit facilis vero.
196
- </p>
197
- </auro-banner>
198
- <!-- AURO-GENERATED-CONTENT:END -->
213
+ </p>
214
+ </auro-banner>
215
+ <!-- AURO-GENERATED-CONTENT:END -->
199
216
  </div>
200
217
  <auro-accordion alignRight>
201
- <span slot="trigger">See code</span>
218
+ <span slot="trigger">See code</span>
202
219
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/iconic.html) -->
203
220
  <!-- The below code snippet is automatically added from ../apiExamples/iconic.html -->
204
221
 
205
- ```html
206
- <auro-banner iconic iconbg="var(ds-basic-color-surface-neutral-medium)">
207
- <picture slot="displayImage">
208
- <source srcset="https://picsum.photos/id/452/2800/2000.jpg" media="(min-width: 1054px)">
209
- <source srcset="https://picsum.photos/id/452/1500/2000" media="(min-width:660px)">
210
- <img src="https://picsum.photos/id/452/2800/2000.jpg" alt="">
211
- </picture>
212
- <span slot="icon">
213
- <auro-icon category="social" name="instagram" customSize customColor style="color: var(--ds-color-base-white); --ds-auro-icon-size: 5rem;"></auro-icon>
214
- </span>
215
- <span slot="title">
216
- <auro-header level="2" display="800" margin="both" size="none">Lorem ipsum title</auro-header>
217
- <auro-header level="3" display="300" margin="top" size="none">You can add multiple auro-header's here</auro-header>
218
- </span>
219
- <p slot="description">
222
+ <pre class="language-html"><code class="language-html">&lt;auro-banner iconic iconbg="var(--ds-basic-color-surface-neutral-medium)"&gt;
223
+ &lt;picture slot="displayImage"&gt;
224
+ &lt;source srcset="https://picsum.photos/id/452/2800/2000.jpg" media="(min-width: 1054px)"&gt;
225
+ &lt;source srcset="https://picsum.photos/id/452/1500/2000" media="(min-width:660px)"&gt;
226
+ &lt;img src="https://picsum.photos/id/452/2800/2000.jpg" alt=""&gt;
227
+ &lt;/picture&gt;
228
+ &lt;span slot="icon"&gt;
229
+ &lt;auro-icon category="social" name="instagram" customSize customColor style="color: var(--ds-basic-color-texticon-inverse); --ds-auro-icon-size: 5rem;"&gt;&lt;/auro-icon&gt;
230
+ &lt;/span&gt;
231
+ &lt;span slot="title"&gt;
232
+ &lt;auro-header level="2" display="800" margin="both" size="none"&gt;Lorem ipsum title&lt;/auro-header&gt;
233
+ &lt;auro-header level="3" display="300" margin="top" size="none"&gt;Add more headings here&lt;/auro-header&gt;
234
+ &lt;/span&gt;
235
+ &lt;p slot="description"&gt;
220
236
  Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam possimus, quod aperiam a aut fuga qui eos reprehenderit facilis vero.
221
- </p>
222
- </auro-banner>
223
- ```
237
+ &lt;/p&gt;
238
+ &lt;/auro-banner&gt;</code></pre>
224
239
  <!-- AURO-GENERATED-CONTENT:END -->
225
240
  </auro-accordion>
226
241
 
227
242
  ### Marquee
228
243
 
229
- The following example illustrates the `marquee` template style. It also supports the `slim` and `appearance="inverse"` attributes.
244
+ The `marquee` layout shows the text on the left and the display image on the right, like `hero`, with a smaller title. It also works with `slim` and `appearance="inverse"`.
230
245
 
231
246
  <div class="exampleWrapper">
232
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/marquee.html) -->
233
- <!-- The below content is automatically added from ../apiExamples/marquee.html -->
234
- <auro-banner marquee>
235
- <picture slot="displayImage">
236
- <source srcset="https://picsum.photos/id/154/2048/2000" media="(min-width: 1024px)">
237
- <source srcset="https://picsum.photos/id/154/736/1400" media="(min-width:660px)">
238
- <img src="https://picsum.photos/id/154/660/420" alt="">
239
- </picture>
240
- <span slot="prefix">Duis aute irure dolor</span>
241
- <span slot="title">Duis aute irure dolor.<br>Excepteur sint occaecat.</span>
242
- <p slot="description">
247
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/marquee.html) -->
248
+ <!-- The below content is automatically added from ../apiExamples/marquee.html -->
249
+ <auro-banner marquee>
250
+ <picture slot="displayImage">
251
+ <source srcset="https://picsum.photos/id/154/2048/2000" media="(min-width: 1024px)">
252
+ <source srcset="https://picsum.photos/id/154/736/1400" media="(min-width:660px)">
253
+ <img src="https://picsum.photos/id/154/660/420" alt="">
254
+ </picture>
255
+ <span slot="title">Duis aute irure dolor.<br>Excepteur sint occaecat.</span>
256
+ <p slot="description">
243
257
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
244
- </p>
245
- <auro-hyperlink
258
+ </p>
259
+ <auro-hyperlink
246
260
  type="cta"
247
261
  variant="secondary"
248
262
  href="/"
249
263
  slot="action"
250
264
  target="_blank">
251
265
  More info
252
- </auro-hyperlink>
253
- </auro-banner>
254
- <!-- AURO-GENERATED-CONTENT:END -->
266
+ </auro-hyperlink>
267
+ </auro-banner>
268
+ <!-- AURO-GENERATED-CONTENT:END -->
255
269
  </div>
256
270
  <auro-accordion alignRight>
257
- <span slot="trigger">See code</span>
271
+ <span slot="trigger">See code</span>
258
272
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/marquee.html) -->
259
273
  <!-- The below code snippet is automatically added from ../apiExamples/marquee.html -->
260
274
 
261
- ```html
262
- <auro-banner marquee>
263
- <picture slot="displayImage">
264
- <source srcset="https://picsum.photos/id/154/2048/2000" media="(min-width: 1024px)">
265
- <source srcset="https://picsum.photos/id/154/736/1400" media="(min-width:660px)">
266
- <img src="https://picsum.photos/id/154/660/420" alt="">
267
- </picture>
268
- <span slot="prefix">Duis aute irure dolor</span>
269
- <span slot="title">Duis aute irure dolor.<br>Excepteur sint occaecat.</span>
270
- <p slot="description">
275
+ <pre class="language-html"><code class="language-html">&lt;auro-banner marquee&gt;
276
+ &lt;picture slot="displayImage"&gt;
277
+ &lt;source srcset="https://picsum.photos/id/154/2048/2000" media="(min-width: 1024px)"&gt;
278
+ &lt;source srcset="https://picsum.photos/id/154/736/1400" media="(min-width:660px)"&gt;
279
+ &lt;img src="https://picsum.photos/id/154/660/420" alt=""&gt;
280
+ &lt;/picture&gt;
281
+ &lt;span slot="title"&gt;Duis aute irure dolor.&lt;br&gt;Excepteur sint occaecat.&lt;/span&gt;
282
+ &lt;p slot="description"&gt;
271
283
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
272
- </p>
273
- <auro-hyperlink
284
+ &lt;/p&gt;
285
+ &lt;auro-hyperlink
274
286
  type="cta"
275
287
  variant="secondary"
276
288
  href="/"
277
289
  slot="action"
278
- target="_blank">
290
+ target="_blank"&gt;
279
291
  More info
280
- </auro-hyperlink>
281
- </auro-banner>
282
- ```
292
+ &lt;/auro-hyperlink&gt;
293
+ &lt;/auro-banner&gt;</code></pre>
283
294
  <!-- AURO-GENERATED-CONTENT:END -->
284
295
  </auro-accordion>
285
296
 
286
- ### Solid Marquee
297
+ ### Solid marquee
287
298
 
288
- The following example illustrates a `<auro-banner>` custom element with the `marquee solid` template style. With this configuration, `appearance="inverse"` is implied.
299
+ This `marquee` banner also sets `solid`, which shows its text in light colors, just as `appearance="inverse"` does.
289
300
 
290
- For content not wrapped in a designated slot, it is required to set the `appearance="inverse"` attribute manually. This is **not** controlled by the `<auro-banner>` element.
301
+ The banner doesn't change the appearance of other components you put in its slots, so set `appearance="inverse"` on each one, such as the `auro-hyperlink` and `auro-alaska` in this example.
291
302
 
292
303
  <div class="exampleWrapper">
293
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/marquee-solid.html) -->
294
- <!-- The below content is automatically added from ../apiExamples/marquee-solid.html -->
295
- <auro-banner marquee solid>
296
- <picture slot="displayImage">
297
- <source srcset="https://picsum.photos/id/1015/1048/2000" media="(min-width: 1024px)">
298
- <source srcset="https://picsum.photos/id/1015/736/1400" media="(min-width:660px)">
299
- <img src="https://picsum.photos/id/1015/660/660" alt="" style="display: block;">
300
- </picture>
301
- <auro-alaska official appearance="inverse" style="width: 192px" slot="contentImage"></auro-alaska>
302
- <p slot="description">
304
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/marquee-solid.html) -->
305
+ <!-- The below content is automatically added from ../apiExamples/marquee-solid.html -->
306
+ <auro-banner marquee solid>
307
+ <picture slot="displayImage">
308
+ <source srcset="https://picsum.photos/id/1015/1048/2000" media="(min-width: 1024px)">
309
+ <source srcset="https://picsum.photos/id/1015/736/1400" media="(min-width:660px)">
310
+ <img src="https://picsum.photos/id/1015/660/660" alt="" style="display: block;">
311
+ </picture>
312
+ <auro-alaska official appearance="inverse" style="width: 192px" slot="contentImage"></auro-alaska>
313
+ <p slot="description">
303
314
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
304
- </p>
305
- <auro-hyperlink
315
+ </p>
316
+ <auro-hyperlink
306
317
  type="cta"
307
318
  appearance="inverse"
308
319
  href="/"
309
320
  slot="action"
310
321
  target="_blank">
311
322
  More info
312
- </auro-hyperlink>
313
- </auro-banner>
314
- <!-- AURO-GENERATED-CONTENT:END -->
323
+ </auro-hyperlink>
324
+ <p slot="disclaimer">
325
+ * Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
326
+ </p>
327
+ </auro-banner>
328
+ <!-- AURO-GENERATED-CONTENT:END -->
315
329
  </div>
316
330
  <auro-accordion alignRight>
317
- <span slot="trigger">See code</span>
331
+ <span slot="trigger">See code</span>
318
332
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/marquee-solid.html) -->
319
333
  <!-- The below code snippet is automatically added from ../apiExamples/marquee-solid.html -->
320
334
 
321
- ```html
322
- <auro-banner marquee solid>
323
- <picture slot="displayImage">
324
- <source srcset="https://picsum.photos/id/1015/1048/2000" media="(min-width: 1024px)">
325
- <source srcset="https://picsum.photos/id/1015/736/1400" media="(min-width:660px)">
326
- <img src="https://picsum.photos/id/1015/660/660" alt="" style="display: block;">
327
- </picture>
328
- <auro-alaska official appearance="inverse" style="width: 192px" slot="contentImage"></auro-alaska>
329
- <p slot="description">
335
+ <pre class="language-html"><code class="language-html">&lt;auro-banner marquee solid&gt;
336
+ &lt;picture slot="displayImage"&gt;
337
+ &lt;source srcset="https://picsum.photos/id/1015/1048/2000" media="(min-width: 1024px)"&gt;
338
+ &lt;source srcset="https://picsum.photos/id/1015/736/1400" media="(min-width:660px)"&gt;
339
+ &lt;img src="https://picsum.photos/id/1015/660/660" alt="" style="display: block;"&gt;
340
+ &lt;/picture&gt;
341
+ &lt;auro-alaska official appearance="inverse" style="width: 192px" slot="contentImage"&gt;&lt;/auro-alaska&gt;
342
+ &lt;p slot="description"&gt;
330
343
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
331
- </p>
332
- <auro-hyperlink
344
+ &lt;/p&gt;
345
+ &lt;auro-hyperlink
333
346
  type="cta"
334
347
  appearance="inverse"
335
348
  href="/"
336
349
  slot="action"
337
- target="_blank">
350
+ target="_blank"&gt;
338
351
  More info
339
- </auro-hyperlink>
340
- </auro-banner>
341
- ```
352
+ &lt;/auro-hyperlink&gt;
353
+ &lt;p slot="disclaimer"&gt;
354
+ * Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
355
+ &lt;/p&gt;
356
+ &lt;/auro-banner&gt;</code></pre>
342
357
  <!-- AURO-GENERATED-CONTENT:END -->
343
358
  </auro-accordion>
344
359
 
345
- ### Rounded Border
360
+ ### Rounded border
346
361
 
347
- The `roundedBorder` variant style adds a border with rounded corners around the banner content. With this configuration, no `displayImage` is used. Instead only the `contentImage` is used and the rest of the content is displayed in a row.
362
+ The `roundedBorder` layout adds a thin border with rounded corners around the banner. It doesn't show the `displayImage` slot; instead, the `contentImage` slot's image sits beside the text on larger screens.
348
363
 
349
364
  <div class="exampleWrapper">
350
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/rounded-border.html) -->
351
- <!-- The below content is automatically added from ../apiExamples/rounded-border.html -->
352
- <auro-banner roundedBorder alignLeft>
353
- <img src="https://images.contentstack.io/v3/assets/blt2cefe12c88e9dd91/blt4f70efe198086558/6633f3defda0c7c6c769b86b/visa_signature.svg" alt="" slot="contentImage" />
354
- <span slot="prefix">Prefix - Limited Time</span>
355
- <span slot="title">Title - Irure dolor.</span>
356
- <p slot="description">
357
- Description - Lorem ipsum dolor sit amet, consectetur adipiscing elit.
358
- </p>
359
- <div slot="disclaimer">
360
- * Disclaimer - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
361
- </div>
362
- <auro-hyperlink
365
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/rounded-border.html) -->
366
+ <!-- The below content is automatically added from ../apiExamples/rounded-border.html -->
367
+ <auro-banner roundedBorder alignLeft>
368
+ <img src="https://images.contentstack.io/v3/assets/blt2cefe12c88e9dd91/blt4f70efe198086558/6633f3defda0c7c6c769b86b/visa_signature.svg" alt="" slot="contentImage" />
369
+ <span slot="prefix">Prefix: Limited time</span>
370
+ <span slot="title">Title: Irure dolor.</span>
371
+ <p slot="description">
372
+ Description: Lorem ipsum dolor sit amet, consectetur adipiscing elit.
373
+ </p>
374
+ <div slot="disclaimer">
375
+ * Disclaimer: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
376
+ </div>
377
+ <auro-hyperlink
363
378
  type="cta"
364
379
  variant="secondary"
365
380
  href="/"
366
381
  slot="action"
367
382
  target="_blank">
368
383
  More info
369
- </auro-hyperlink>
370
- </auro-banner>
371
- <!-- AURO-GENERATED-CONTENT:END -->
384
+ </auro-hyperlink>
385
+ </auro-banner>
386
+ <!-- AURO-GENERATED-CONTENT:END -->
372
387
  </div>
373
388
  <auro-accordion alignRight>
374
- <span slot="trigger">See code</span>
389
+ <span slot="trigger">See code</span>
375
390
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/rounded-border.html) -->
376
391
  <!-- The below code snippet is automatically added from ../apiExamples/rounded-border.html -->
377
392
 
378
- ```html
379
- <auro-banner roundedBorder alignLeft>
380
- <img src="https://images.contentstack.io/v3/assets/blt2cefe12c88e9dd91/blt4f70efe198086558/6633f3defda0c7c6c769b86b/visa_signature.svg" alt="" slot="contentImage" />
381
- <span slot="prefix">Prefix - Limited Time</span>
382
- <span slot="title">Title - Irure dolor.</span>
383
- <p slot="description">
384
- Description - Lorem ipsum dolor sit amet, consectetur adipiscing elit.
385
- </p>
386
- <div slot="disclaimer">
387
- * Disclaimer - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
388
- </div>
389
- <auro-hyperlink
393
+ <pre class="language-html"><code class="language-html">&lt;auro-banner roundedBorder alignLeft&gt;
394
+ &lt;img src="https://images.contentstack.io/v3/assets/blt2cefe12c88e9dd91/blt4f70efe198086558/6633f3defda0c7c6c769b86b/visa_signature.svg" alt="" slot="contentImage" /&gt;
395
+ &lt;span slot="prefix"&gt;Prefix: Limited time&lt;/span&gt;
396
+ &lt;span slot="title"&gt;Title: Irure dolor.&lt;/span&gt;
397
+ &lt;p slot="description"&gt;
398
+ Description: Lorem ipsum dolor sit amet, consectetur adipiscing elit.
399
+ &lt;/p&gt;
400
+ &lt;div slot="disclaimer"&gt;
401
+ * Disclaimer: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
402
+ &lt;/div&gt;
403
+ &lt;auro-hyperlink
390
404
  type="cta"
391
405
  variant="secondary"
392
406
  href="/"
393
407
  slot="action"
394
- target="_blank">
408
+ target="_blank"&gt;
395
409
  More info
396
- </auro-hyperlink>
397
- </auro-banner>
398
- ```
410
+ &lt;/auro-hyperlink&gt;
411
+ &lt;/auro-banner&gt;</code></pre>
399
412
  <!-- AURO-GENERATED-CONTENT:END -->
400
413
  </auro-accordion>
401
414
 
402
- ## Slot Examples
415
+ ## Slot examples
403
416
 
404
- #### Display Image Slot for Background
417
+ #### Display image slot for background
405
418
 
406
- The `displayImage` slot is configured to work with the HTML [picture](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture) element.
419
+ The `displayImage` slot works with the HTML [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture) element.
407
420
 
408
- ```html
409
- <picture slot="displayImage">
410
- <source srcset="https://picsum.photos/id/430/1024/600" media="(min-width: 736px)">
411
- <source srcset="https://picsum.photos/id/430/736/1400" media="(min-width: 375px)">
412
- <source srcset="https://picsum.photos/id/430/320/1200" media="(min-width: 320px)">
413
- <img src="https://picsum.photos/id/430/225/550" alt="" />
414
- </picture>
415
- ```
421
+ <pre class="language-html"><code class="language-html">&lt;picture slot="displayImage"&gt;
422
+ &lt;source srcset="https://picsum.photos/id/430/1024/600" media="(min-width: 736px)"&gt;
423
+ &lt;source srcset="https://picsum.photos/id/430/736/1400" media="(min-width: 375px)"&gt;
424
+ &lt;source srcset="https://picsum.photos/id/430/320/1200" media="(min-width: 320px)"&gt;
425
+ &lt;img src="https://picsum.photos/id/430/225/550" alt="" /&gt;
426
+ &lt;/picture&gt;</code></pre>
416
427
 
417
- This allows the editor the utmost in image flexibility for cropped images placed at different breakpoints. A slotted `<img>` element is the default image shown when less than the first defined breakpoint.
428
+ Use it to show a differently cropped image at each breakpoint. The `<img>` element shows when the screen is narrower than the smallest `media` breakpoint.
418
429
 
419
- By default `<img>` elements are `inline` elements and will add a few pixels of space below the image. To counter this, either set `display: block` on the `<img>` element, or add this [WCSS pre-defined selector](https://alaskaairlines.github.io/WebCoreStyleSheets/#core-css-#{$sym}#{$prefix}picture#{$scope}) to your project.<br><br>
430
+ `<img>` elements are inline by default, which adds a few pixels of space below the image. To remove it, set `display: block` on the `<img>` element, or add the [WCSS `picture` selector](https://alaskaairlines.github.io/WebCoreStyleSheets/#core-css-#{manageScope.$sym}#{manageScope.$prefix}picture#{manageScope.$scope}), which sets `display: block` on images inside `<picture>` elements, to your project.<br><br>
420
431
 
421
- ## Common Usage Patterns & Functional Examples
432
+ ## Common usage patterns and functional examples
422
433
 
423
- #### Billboard / slim / alignRight / appearance
434
+ #### Right-aligned `billboard` with `slim` and `appearance`
424
435
 
425
- The following example illustrates a series of additional API options available to the `<auro-banner>` element. In this example, this shows how a user can augment the `billboard` theme of the `<auro-banner>`.
436
+ Add `slim`, `alignRight`, and `appearance="inverse"` to a `billboard` banner to reduce its side padding, align the content to the right, and show the text in light colors over a dark image.
426
437
 
427
438
  <div class="exampleWrapper">
428
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/billboard-series.html) -->
429
- <!-- The below content is automatically added from ../apiExamples/billboard-series.html -->
430
- <auro-banner billboard slim alignRight appearance="inverse">
431
- <picture slot="displayImage">
432
- <source srcset="https://picsum.photos/id/324/1124/800" media="(min-width: 1024px)">
433
- <source srcset="https://picsum.photos/id/324/1124/1000" media="(min-width: 768px)">
434
- <source srcset="https://picsum.photos/id/324/736/750" media="(min-width: 736px)">
435
- <source srcset="https://picsum.photos/id/324/736/1400" media="(min-width: 375px)">
436
- <source srcset="https://picsum.photos/id/324/320/700" media="(min-width: 320px)">
437
- <img src="https://picsum.photos/id/324/225/550" alt="" />
438
- </picture>
439
- <auro-alaska official appearance="inverse" style="width: 192px" slot="contentImage"></auro-alaska>
440
- <p slot="description">
441
- <span style="max-width:320px; margin-left:auto; display:block">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</span>
442
- </p>
443
- <auro-hyperlink
439
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/billboard-series.html) -->
440
+ <!-- The below content is automatically added from ../apiExamples/billboard-series.html -->
441
+ <auro-banner billboard slim alignRight appearance="inverse">
442
+ <picture slot="displayImage">
443
+ <source srcset="https://picsum.photos/id/324/1124/800" media="(min-width: 1024px)">
444
+ <source srcset="https://picsum.photos/id/324/1124/1000" media="(min-width: 768px)">
445
+ <source srcset="https://picsum.photos/id/324/736/750" media="(min-width: 736px)">
446
+ <source srcset="https://picsum.photos/id/324/736/1400" media="(min-width: 375px)">
447
+ <source srcset="https://picsum.photos/id/324/320/700" media="(min-width: 320px)">
448
+ <img src="https://picsum.photos/id/324/225/550" alt="" />
449
+ </picture>
450
+ <auro-alaska official appearance="inverse" style="width: 192px" slot="contentImage"></auro-alaska>
451
+ <p slot="description">
452
+ <span style="max-width:320px; margin-left:auto; display:block">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</span>
453
+ </p>
454
+ <auro-hyperlink
444
455
  type="cta"
445
456
  variant="secondary"
446
457
  appearance="inverse"
@@ -448,64 +459,62 @@ The following example illustrates a series of additional API options available t
448
459
  slot="action"
449
460
  target="_blank">
450
461
  Learn more
451
- </auro-hyperlink>
452
- </auro-banner>
453
- <!-- AURO-GENERATED-CONTENT:END -->
462
+ </auro-hyperlink>
463
+ </auro-banner>
464
+ <!-- AURO-GENERATED-CONTENT:END -->
454
465
  </div>
455
466
  <auro-accordion alignRight>
456
- <span slot="trigger">See code</span>
467
+ <span slot="trigger">See code</span>
457
468
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/billboard-series.html) -->
458
469
  <!-- The below code snippet is automatically added from ../apiExamples/billboard-series.html -->
459
470
 
460
- ```html
461
- <auro-banner billboard slim alignRight appearance="inverse">
462
- <picture slot="displayImage">
463
- <source srcset="https://picsum.photos/id/324/1124/800" media="(min-width: 1024px)">
464
- <source srcset="https://picsum.photos/id/324/1124/1000" media="(min-width: 768px)">
465
- <source srcset="https://picsum.photos/id/324/736/750" media="(min-width: 736px)">
466
- <source srcset="https://picsum.photos/id/324/736/1400" media="(min-width: 375px)">
467
- <source srcset="https://picsum.photos/id/324/320/700" media="(min-width: 320px)">
468
- <img src="https://picsum.photos/id/324/225/550" alt="" />
469
- </picture>
470
- <auro-alaska official appearance="inverse" style="width: 192px" slot="contentImage"></auro-alaska>
471
- <p slot="description">
472
- <span style="max-width:320px; margin-left:auto; display:block">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</span>
473
- </p>
474
- <auro-hyperlink
471
+ <pre class="language-html"><code class="language-html">&lt;auro-banner billboard slim alignRight appearance="inverse"&gt;
472
+ &lt;picture slot="displayImage"&gt;
473
+ &lt;source srcset="https://picsum.photos/id/324/1124/800" media="(min-width: 1024px)"&gt;
474
+ &lt;source srcset="https://picsum.photos/id/324/1124/1000" media="(min-width: 768px)"&gt;
475
+ &lt;source srcset="https://picsum.photos/id/324/736/750" media="(min-width: 736px)"&gt;
476
+ &lt;source srcset="https://picsum.photos/id/324/736/1400" media="(min-width: 375px)"&gt;
477
+ &lt;source srcset="https://picsum.photos/id/324/320/700" media="(min-width: 320px)"&gt;
478
+ &lt;img src="https://picsum.photos/id/324/225/550" alt="" /&gt;
479
+ &lt;/picture&gt;
480
+ &lt;auro-alaska official appearance="inverse" style="width: 192px" slot="contentImage"&gt;&lt;/auro-alaska&gt;
481
+ &lt;p slot="description"&gt;
482
+ &lt;span style="max-width:320px; margin-left:auto; display:block"&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.&lt;/span&gt;
483
+ &lt;/p&gt;
484
+ &lt;auro-hyperlink
475
485
  type="cta"
476
486
  variant="secondary"
477
487
  appearance="inverse"
478
488
  href="/"
479
489
  slot="action"
480
- target="_blank">
490
+ target="_blank"&gt;
481
491
  Learn more
482
- </auro-hyperlink>
483
- </auro-banner>
484
- ```
492
+ &lt;/auro-hyperlink&gt;
493
+ &lt;/auro-banner&gt;</code></pre>
485
494
  <!-- AURO-GENERATED-CONTENT:END -->
486
495
  </auro-accordion>
487
496
 
488
- #### Billboard / slim / alignLeft / appearance
497
+ #### Left-aligned `billboard` with `slim` and `appearance`
489
498
 
490
- The following example illustrates an option to left align the text `alignLeft` along with `slim` to reduce the padding and `appearance="inverse"` to change the text to white.
499
+ Use `alignLeft` to align the content to the left, with `slim` to reduce the side padding and `appearance="inverse"` to show the text in light colors.
491
500
 
492
501
  <div class="exampleWrapper">
493
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/billboard-series-left.html) -->
494
- <!-- The below content is automatically added from ../apiExamples/billboard-series-left.html -->
495
- <auro-banner billboard slim alignLeft appearance="inverse">
496
- <picture slot="displayImage">
497
- <source srcset="https://picsum.photos/id/42/1124/800" media="(min-width: 1024px)">
498
- <source srcset="https://picsum.photos/id/42/1124/1000" media="(min-width: 768px)">
499
- <source srcset="https://picsum.photos/id/42/736/750" media="(min-width: 736px)">
500
- <source srcset="https://picsum.photos/id/42/736/1400" media="(min-width: 375px)">
501
- <source srcset="https://picsum.photos/id/42/320/700" media="(min-width: 320px)">
502
- <img src="https://picsum.photos/id/42/225/550" alt="" />
503
- </picture>
504
- <span slot="title">Beverages and cocktails</span>
505
- <p slot="description">
506
- <span style="max-width: 360px;display: block;">Enjoy soft drinks, fresh Starbucks® coffee – including lattes and cappuccinos, and Teavana® tea while you relax. Or try our famous Bloody Mary.</span>
507
- </p>
508
- <auro-hyperlink
502
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/billboard-series-left.html) -->
503
+ <!-- The below content is automatically added from ../apiExamples/billboard-series-left.html -->
504
+ <auro-banner billboard slim alignLeft appearance="inverse">
505
+ <picture slot="displayImage">
506
+ <source srcset="https://picsum.photos/id/42/1124/800" media="(min-width: 1024px)">
507
+ <source srcset="https://picsum.photos/id/42/1124/1000" media="(min-width: 768px)">
508
+ <source srcset="https://picsum.photos/id/42/736/750" media="(min-width: 736px)">
509
+ <source srcset="https://picsum.photos/id/42/736/1400" media="(min-width: 375px)">
510
+ <source srcset="https://picsum.photos/id/42/320/700" media="(min-width: 320px)">
511
+ <img src="https://picsum.photos/id/42/225/550" alt="" />
512
+ </picture>
513
+ <span slot="title">Beverages and cocktails</span>
514
+ <p slot="description">
515
+ <span style="max-width: 360px;display: block;">Enjoy soft drinks, Teavana® tea, and fresh Starbucks® coffee, including lattes and cappuccinos, while you relax. Or try our famous Bloody Mary.</span>
516
+ </p>
517
+ <auro-hyperlink
509
518
  type="cta"
510
519
  variant="secondary"
511
520
  appearance="inverse"
@@ -513,61 +522,56 @@ The following example illustrates an option to left align the text `alignLeft` a
513
522
  slot="action"
514
523
  target="_blank">
515
524
  More info
516
- </auro-hyperlink>
517
- </auro-banner>
518
- <!-- AURO-GENERATED-CONTENT:END -->
525
+ </auro-hyperlink>
526
+ </auro-banner>
527
+ <!-- AURO-GENERATED-CONTENT:END -->
519
528
  </div>
520
529
  <auro-accordion alignRight>
521
- <span slot="trigger">See code</span>
530
+ <span slot="trigger">See code</span>
522
531
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/billboard-series-left.html) -->
523
532
  <!-- The below code snippet is automatically added from ../apiExamples/billboard-series-left.html -->
524
533
 
525
- ```html
526
- <auro-banner billboard slim alignLeft appearance="inverse">
527
- <picture slot="displayImage">
528
- <source srcset="https://picsum.photos/id/42/1124/800" media="(min-width: 1024px)">
529
- <source srcset="https://picsum.photos/id/42/1124/1000" media="(min-width: 768px)">
530
- <source srcset="https://picsum.photos/id/42/736/750" media="(min-width: 736px)">
531
- <source srcset="https://picsum.photos/id/42/736/1400" media="(min-width: 375px)">
532
- <source srcset="https://picsum.photos/id/42/320/700" media="(min-width: 320px)">
533
- <img src="https://picsum.photos/id/42/225/550" alt="" />
534
- </picture>
535
- <span slot="title">Beverages and cocktails</span>
536
- <p slot="description">
537
- <span style="max-width: 360px;display: block;">Enjoy soft drinks, fresh Starbucks® coffee – including lattes and cappuccinos, and Teavana® tea while you relax. Or try our famous Bloody Mary.</span>
538
- </p>
539
- <auro-hyperlink
534
+ <pre class="language-html"><code class="language-html">&lt;auro-banner billboard slim alignLeft appearance="inverse"&gt;
535
+ &lt;picture slot="displayImage"&gt;
536
+ &lt;source srcset="https://picsum.photos/id/42/1124/800" media="(min-width: 1024px)"&gt;
537
+ &lt;source srcset="https://picsum.photos/id/42/1124/1000" media="(min-width: 768px)"&gt;
538
+ &lt;source srcset="https://picsum.photos/id/42/736/750" media="(min-width: 736px)"&gt;
539
+ &lt;source srcset="https://picsum.photos/id/42/736/1400" media="(min-width: 375px)"&gt;
540
+ &lt;source srcset="https://picsum.photos/id/42/320/700" media="(min-width: 320px)"&gt;
541
+ &lt;img src="https://picsum.photos/id/42/225/550" alt="" /&gt;
542
+ &lt;/picture&gt;
543
+ &lt;span slot="title"&gt;Beverages and cocktails&lt;/span&gt;
544
+ &lt;p slot="description"&gt;
545
+ &lt;span style="max-width: 360px;display: block;"&gt;Enjoy soft drinks, Teavana® tea, and fresh Starbucks® coffee, including lattes and cappuccinos, while you relax. Or try our famous Bloody Mary.&lt;/span&gt;
546
+ &lt;/p&gt;
547
+ &lt;auro-hyperlink
540
548
  type="cta"
541
549
  variant="secondary"
542
550
  appearance="inverse"
543
551
  href="/"
544
552
  slot="action"
545
- target="_blank">
553
+ target="_blank"&gt;
546
554
  More info
547
- </auro-hyperlink>
548
- </auro-banner>
549
- ```
555
+ &lt;/auro-hyperlink&gt;
556
+ &lt;/auro-banner&gt;</code></pre>
550
557
  <!-- AURO-GENERATED-CONTENT:END -->
551
558
  </auro-accordion>
552
559
 
553
- ## Restyle Component with CSS Variables
560
+ ## Restyle with CSS custom properties
554
561
 
555
- The component may be restyled by changing the values of the following token(s).
562
+ Restyle the component by changing the values of these tokens.
556
563
 
557
564
  <!-- Remove section if component does not have any component specific tokens -->
558
565
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../src/styles/tokens.scss) -->
559
566
  <!-- The below code snippet is automatically added from ./../src/styles/tokens.scss -->
560
567
 
561
- ```scss
562
- @use "@aurodesignsystem/design-tokens/dist/themes/alaska/SCSSVariables--alaska" as v;
563
-
564
- :host {
568
+ <pre class="language-scss"><code class="language-scss">@use "@aurodesignsystem/design-tokens/dist/themes/alaska/SCSSVariables--alaska" as v;
569
+ &#10;:host {
565
570
  --ds-auro-banner-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
566
571
  --ds-auro-banner-disclaimer-text-color: var(--ds-basic-color-texticon-muted, #{v.$ds-basic-color-texticon-muted});
567
572
  --ds-auro-banner-title-text-color: var(--ds-basic-color-texticon-accent1, #{v.$ds-basic-color-texticon-accent1});
568
573
  --ds-auro-banner-icon-container-color: var(--ds-basic-color-surface-neutral-medium, #{v.$ds-basic-color-surface-neutral-medium});
569
574
  --ds-auro-banner-wrapper-container-color: var(--ds-basic-color-surface-inverse, #{v.$ds-basic-color-surface-inverse});
570
575
  --ds-auro-banner-wrapper-border-color: var(--ds-basic-color-border-default, #{v.$ds-basic-color-border-default});
571
- }
572
- ```
576
+ }</code></pre>
573
577
  <!-- AURO-GENERATED-CONTENT:END -->