|
5 | 5 | <p>A standalone item tile on its own wouldn't be very useful. You'd typically use multiple item tiles inside a layout. Here's an example of a list of item tiles using the <highlight>layout-grid</highlight> component. The responsive display rules are set on the <highlight>layout-grid</highlight> using the specific breakpoint hooks using the various breakpoint attributes.</p> |
6 | 6 |
|
7 | 7 | <demo> |
8 | | - <div class="item-tile-group layout-grid" |
9 | | - data-columns-min="2" |
10 | | - data-columns-md="3" |
11 | | - data-columns-lg="4" |
12 | | - data-columns-xl="5" |
13 | | - > |
| 8 | + <div class="item-tile-group layout-grid"> |
14 | 9 | <ul aria-label="Items for sale"> |
15 | 10 | <li> |
16 | 11 | <div class="item-tile"> |
|
50 | 45 | </div> |
51 | 46 | <div class="item-tile__section-tertiary"> |
52 | 47 | <p> |
53 | | - $29.99 |
| 48 | + $29.99 |
54 | 49 | <span class="clipped">Was: </span> |
55 | 50 | <s class="item-tile__list-price">$68.99</s> |
56 | 51 | </p> |
|
99 | 94 | </div> |
100 | 95 | <div class="item-tile__section-tertiary"> |
101 | 96 | <p> |
102 | | - $29.99 |
| 97 | + $29.99 |
103 | 98 | <span class="clipped">Was: </span> |
104 | 99 | <s class="item-tile__list-price">$68.99</s> |
105 | 100 | </p> |
|
148 | 143 | </div> |
149 | 144 | <div class="item-tile__section-tertiary"> |
150 | 145 | <p> |
151 | | - $29.99 |
| 146 | + $29.99 |
152 | 147 | <span class="clipped">Was: </span> |
153 | 148 | <s class="item-tile__list-price">$68.99</s> |
154 | 149 | </p> |
|
197 | 192 | </div> |
198 | 193 | <div class="item-tile__section-tertiary"> |
199 | 194 | <p> |
200 | | - $29.99 |
| 195 | + $29.99 |
201 | 196 | <span class="clipped">Was: </span> |
202 | 197 | <s class="item-tile__list-price">$68.99</s> |
203 | 198 | </p> |
|
213 | 208 | </demo> |
214 | 209 |
|
215 | 210 | <highlight-code type="html"> |
216 | | -<div class="item-tile-group layout-grid" |
217 | | - data-columns-min="2" |
218 | | - data-columns-md="3" |
219 | | - data-columns-lg="4" |
220 | | - data-columns-xl="5" |
221 | | -> |
| 211 | +<div class="item-tile-group layout-grid"> |
222 | 212 | <ul aria-label="Items for sale"> |
223 | 213 | <li> |
224 | 214 | <div class="item-tile"> |
|
258 | 248 | </div> |
259 | 249 | <div class="item-tile__section-tertiary"> |
260 | 250 | <p> |
261 | | - $29.99 |
| 251 | + $29.99 |
262 | 252 | <span class="clipped">Was: </span> |
263 | 253 | <s class="item-tile__list-price">$68.99</s> |
264 | 254 | </p> |
|
279 | 269 | <p>To use a set of List Layout Item Tiles in a layout, you can use the <highlight>layout-grid</highlight> component with the specific responsive display rules per specifications. This will ensure proper spacing of Item Tiles in relation to each other and maintain the horizontally-oriented Item Tiles stacked across all breakpoints until it hits the <highlight>xl</highlight> breakpoint, where it displays two Item Tiles per row.</p> |
280 | 270 |
|
281 | 271 | <demo> |
282 | | - <div class="item-tile-group item-tile-group--list-view layout-grid" |
283 | | - data-columns-min="1" |
284 | | - data-columns-xl="2" |
285 | | - > |
| 272 | + <div class="item-tile-group item-tile-group--list-view layout-grid"> |
286 | 273 | <ul aria-label="Items for sale"> |
287 | 274 | <li> |
288 | 275 | <div class="item-tile item-tile--list-view"> |
|
322 | 309 | </div> |
323 | 310 | <div class="item-tile__section-tertiary"> |
324 | 311 | <p> |
325 | | - $29.99 |
| 312 | + $29.99 |
326 | 313 | <span class="clipped">Was: </span> |
327 | 314 | <s class="item-tile__list-price">$68.99</s> |
328 | 315 | </p> |
|
371 | 358 | </div> |
372 | 359 | <div class="item-tile__section-tertiary"> |
373 | 360 | <p> |
374 | | - $29.99 |
| 361 | + $29.99 |
375 | 362 | <span class="clipped">Was: </span> |
376 | 363 | <s class="item-tile__list-price">$68.99</s> |
377 | 364 | </p> |
|
420 | 407 | </div> |
421 | 408 | <div class="item-tile__section-tertiary"> |
422 | 409 | <p> |
423 | | - $29.99 |
| 410 | + $29.99 |
424 | 411 | <span class="clipped">Was: </span> |
425 | 412 | <s class="item-tile__list-price">$68.99</s> |
426 | 413 | </p> |
|
469 | 456 | </div> |
470 | 457 | <div class="item-tile__section-tertiary"> |
471 | 458 | <p> |
472 | | - $29.99 |
| 459 | + $29.99 |
473 | 460 | <span class="clipped">Was: </span> |
474 | 461 | <s class="item-tile__list-price">$68.99</s> |
475 | 462 | </p> |
|
485 | 472 | </demo> |
486 | 473 |
|
487 | 474 | <highlight-code type="html"> |
488 | | -<div class="item-tile-group item-tile-group--list-view layout-grid" |
489 | | - data-columns-min="1" |
490 | | - data-columns-xl="2" |
491 | | -> |
| 475 | +<div class="item-tile-group item-tile-group--list-view layout-grid"> |
492 | 476 | <ul aria-label="Items for sale"> |
493 | 477 | <li> |
494 | 478 | <div class="item-tile item-tile--list-view"> |
|
528 | 512 | </div> |
529 | 513 | <div class="item-tile__section-tertiary"> |
530 | 514 | <p> |
531 | | - $29.99 |
| 515 | + $29.99 |
532 | 516 | <span class="clipped">Was: </span> |
533 | 517 | <s class="item-tile__list-price">$68.99</s> |
534 | 518 | </p> |
|
0 commit comments