Configurator
<oc-selection-tile-v2 color="var(--oc-semantic-color-background-block-mint)"><input type="checkbox" name="cfg-tile" aria-label="XL"><label slot="content">XL</label></oc-selection-tile-v2>Usage
Variants
Selection tiles are available in the following variants:
- text
- color
- image
- container

HTML
<oc-selection-tile-v2 variant="text"><label slot="content">XL</label><input type="checkbox" aria-label="oc-auto"></oc-selection-tile-v2>
<oc-selection-tile-v2 variant="color" color="var(--oc-semantic-color-background-block-mint)"><input type="checkbox" aria-label="Mint"></oc-selection-tile-v2>
<oc-selection-tile-v2 variant="image" img-src="/previews/imagery/samples/otto-product-still/product-sneaker.webp"><input type="checkbox" aria-label="Weiß"></oc-selection-tile-v2>
<oc-selection-tile-v2 variant="container"><div slot="content" style="padding:8px"><img src="/previews/imagery/samples/otto-product-still/product-sneaker.webp" alt="" style="display:block;width:64px;height:80px;object-fit:cover;border-radius:4px"></div><input type="checkbox" aria-label="Sneaker Weiß"></oc-selection-tile-v2>
You can use the selection tile with a single or a multi selection mode. For the single selection you can select one tile at once. For the multi selection you can select multiple tiles simultaneously.
Single selection (radio)
Multi selection (checkbox)
HTML
<p class="demo-label">Single selection (radio)</p>
<oc-selection-tile-v2 width-behavior="fill"><label slot="content" style="display:block;width:100%;text-align:center">XS</label><input type="radio" name="st-single" aria-label="oc-auto"></oc-selection-tile-v2>
<oc-selection-tile-v2 width-behavior="fill"><label slot="content" style="display:block;width:100%;text-align:center">S</label><input type="radio" name="st-single" checked aria-label="oc-auto"></oc-selection-tile-v2>
<oc-selection-tile-v2 width-behavior="fill"><label slot="content" style="display:block;width:100%;text-align:center">M</label><input type="radio" name="st-single" aria-label="oc-auto"></oc-selection-tile-v2>
<oc-selection-tile-v2 width-behavior="fill"><label slot="content" style="display:block;width:100%;text-align:center">L</label><input type="radio" name="st-single" aria-label="oc-auto"></oc-selection-tile-v2>
<oc-selection-tile-v2 width-behavior="fill"><label slot="content" style="display:block;width:100%;text-align:center">XL</label><input type="radio" name="st-single" aria-label="oc-auto"></oc-selection-tile-v2>
<oc-selection-tile-v2 width-behavior="fill"><label slot="content" style="display:block;width:100%;text-align:center">XXL</label><input type="radio" name="st-single" aria-label="oc-auto"></oc-selection-tile-v2>
<oc-selection-tile-v2 width-behavior="fill"><label slot="content" style="display:block;width:100%;text-align:center">3XL</label><input type="radio" name="st-single" aria-label="oc-auto"></oc-selection-tile-v2>
<oc-selection-tile-v2 width-behavior="fill"><label slot="content" style="display:block;width:100%;text-align:center">4XL</label><input type="radio" name="st-single" aria-label="oc-auto"></oc-selection-tile-v2>
<p class="demo-label">Multi selection (checkbox)</p>
<oc-selection-tile-v2 width-behavior="fill"><label slot="content" style="display:block;width:100%;text-align:center">XS</label><input type="checkbox" checked aria-label="oc-auto"></oc-selection-tile-v2>
<oc-selection-tile-v2 width-behavior="fill"><label slot="content" style="display:block;width:100%;text-align:center">S</label><input type="checkbox" aria-label="oc-auto"></oc-selection-tile-v2>
<oc-selection-tile-v2 width-behavior="fill"><label slot="content" style="display:block;width:100%;text-align:center">M</label><input type="checkbox" checked aria-label="oc-auto"></oc-selection-tile-v2>
<oc-selection-tile-v2 width-behavior="fill"><label slot="content" style="display:block;width:100%;text-align:center">L</label><input type="checkbox" aria-label="oc-auto"></oc-selection-tile-v2>
<oc-selection-tile-v2 width-behavior="fill"><label slot="content" style="display:block;width:100%;text-align:center">XL</label><input type="checkbox" aria-label="oc-auto"></oc-selection-tile-v2>
<oc-selection-tile-v2 width-behavior="fill"><label slot="content" style="display:block;width:100%;text-align:center">XXL</label><input type="checkbox" checked aria-label="oc-auto"></oc-selection-tile-v2>
<oc-selection-tile-v2 width-behavior="fill"><label slot="content" style="display:block;width:100%;text-align:center">3XL</label><input type="checkbox" aria-label="oc-auto"></oc-selection-tile-v2>
<oc-selection-tile-v2 width-behavior="fill"><label slot="content" style="display:block;width:100%;text-align:center">4XL</label><input type="checkbox" aria-label="oc-auto"></oc-selection-tile-v2>
If the option is not available, you can use the strike-through variant. The strike-through variant is available for each variant mentioned above. In comparison to the disabled property, this variant is still interactive.

HTML
<oc-selection-tile-v2 variant="text" strike-through><label slot="content">XL</label><input type="checkbox" aria-label="oc-auto"></oc-selection-tile-v2>
<oc-selection-tile-v2 variant="color" strike-through color="var(--oc-semantic-color-background-block-mint)"><input type="checkbox" aria-label="Mint, nicht verfügbar"></oc-selection-tile-v2>
<oc-selection-tile-v2 variant="image" strike-through img-src="/previews/imagery/samples/otto-product-still/product-sneaker.webp"><input type="checkbox" aria-label="Weiß, nicht verfügbar"></oc-selection-tile-v2>
<oc-selection-tile-v2 variant="container" strike-through><div slot="content" style="padding:8px"><img src="/previews/imagery/samples/otto-product-still/product-sneaker.webp" alt="" style="display:block;width:64px;height:80px;object-fit:cover;border-radius:4px"></div><input type="checkbox" aria-label="Sneaker Weiß, nicht verfügbar"></oc-selection-tile-v2>
Selection signifiers
You can optionally add a selection signifier to increase the affordance of the selection tile. The variant (radio/checkbox) is automatically derived from the selection tile's properties.
Checkbox signifier (multi selection)
Radio signifier (single selection)
HTML
<p class="demo-label">Checkbox signifier (multi selection)</p>
<oc-selection-tile-v2 variant="text" width-behavior="fill"><input type="checkbox" aria-label="Geschenkverpackung"><div slot="content" style="text-align:left"><div class="demo-row"><oc-selection-signifier-v1></oc-selection-signifier-v1><span class="oc-copy-100 oc-copy--bold">Geschenkverpackung</span></div><div>Wir packen deinen Artikel für 2,95 € als Geschenk ein.</div></div></oc-selection-tile-v2>
<p class="demo-label">Radio signifier (single selection)</p>
<oc-selection-tile-v2 variant="text" width-behavior="fill"><input type="radio" name="st-sig" aria-label="Expresslieferung"><div slot="content" style="text-align:left"><div class="demo-row"><oc-selection-signifier-v1></oc-selection-signifier-v1><span class="oc-copy-100 oc-copy--bold">Expresslieferung</span></div><div>Bestellst du bis 12 Uhr, kommt dein Paket morgen.</div></div></oc-selection-tile-v2>
Behavior
States
Enabled (hover, press, focus it)

Selected

Disabled

HTML
<p class="demo-label">Enabled (hover, press, focus it)</p>
<oc-selection-tile-v2><label slot="content">M</label><input type="checkbox" aria-label="oc-auto"></oc-selection-tile-v2>
<oc-selection-tile-v2 variant="color" color="var(--oc-semantic-color-background-block-mint)"><input type="checkbox" aria-label="Mint"></oc-selection-tile-v2>
<oc-selection-tile-v2 variant="image" img-src="/previews/imagery/samples/otto-product-still/product-sneaker.webp"><input type="checkbox" aria-label="Weiß"></oc-selection-tile-v2>
<oc-selection-tile-v2 variant="container"><div slot="content" style="padding:8px"><img src="/previews/imagery/samples/otto-product-still/product-sneaker.webp" alt="" style="display:block;width:64px;height:80px;object-fit:cover;border-radius:4px"></div><input type="checkbox" aria-label="Sneaker Weiß"></oc-selection-tile-v2>
<p class="demo-label">Selected</p>
<oc-selection-tile-v2><label slot="content">M</label><input type="checkbox" checked aria-label="oc-auto"></oc-selection-tile-v2>
<oc-selection-tile-v2 variant="color" color="var(--oc-semantic-color-background-block-mint)"><input type="checkbox" checked aria-label="Mint"></oc-selection-tile-v2>
<oc-selection-tile-v2 variant="image" img-src="/previews/imagery/samples/otto-product-still/product-sneaker.webp"><input type="checkbox" checked aria-label="Weiß"></oc-selection-tile-v2>
<oc-selection-tile-v2 variant="container"><div slot="content" style="padding:8px"><img src="/previews/imagery/samples/otto-product-still/product-sneaker.webp" alt="" style="display:block;width:64px;height:80px;object-fit:cover;border-radius:4px"></div><input type="checkbox" checked aria-label="Sneaker Weiß"></oc-selection-tile-v2>
<p class="demo-label">Disabled</p>
<oc-selection-tile-v2><label slot="content">M</label><input type="checkbox" disabled aria-label="oc-auto"></oc-selection-tile-v2>
<oc-selection-tile-v2 variant="color" color="var(--oc-semantic-color-background-block-mint)"><input type="checkbox" disabled aria-label="Mint"></oc-selection-tile-v2>
<oc-selection-tile-v2 variant="image" img-src="/previews/imagery/samples/otto-product-still/product-sneaker.webp"><input type="checkbox" disabled aria-label="Weiß"></oc-selection-tile-v2>
<oc-selection-tile-v2 variant="container"><div slot="content" style="padding:8px"><img src="/previews/imagery/samples/otto-product-still/product-sneaker.webp" alt="" style="display:block;width:64px;height:80px;object-fit:cover;border-radius:4px"></div><input type="checkbox" disabled aria-label="Sneaker Weiß"></oc-selection-tile-v2>
Fitting
The text variant has a fixed height. It can use either fit-content or fill-parent. When using fill-parent, ensure that the content is completely visible.
The image and color variant size is 1.5rem, but the hitbox size is 2rem. The hitbox size is calculated based on the recommended 8px gap between them.
The behavior of the container variant can be freely chosen and you can for example use fit-content, fill-parent or a custom fixed size. You can use any kind of content for the container variant.
fit-content (height fixed)

fill-parent

HTML
<p class="demo-label">fit-content (height fixed)</p>
<oc-selection-tile-v2><label slot="content">XL</label><input type="checkbox" aria-label="oc-auto"></oc-selection-tile-v2>
<oc-selection-tile-v2 variant="container"><div slot="content" style="padding:8px"><img src="/previews/imagery/samples/otto-product-still/product-sneaker.webp" alt="" style="display:block;width:64px;height:80px;object-fit:cover;border-radius:4px"></div><input type="checkbox" aria-label="Sneaker Weiß"></oc-selection-tile-v2>
<p class="demo-label">fill-parent</p>
<oc-selection-tile-v2 width-behavior="fill"><label slot="content" style="display:block;width:100%;text-align:center">XL</label><input type="checkbox" aria-label="oc-auto"></oc-selection-tile-v2>
<oc-selection-tile-v2 variant="container" width-behavior="fill"><div slot="content" style="padding:8px"><img src="/previews/imagery/samples/otto-product-still/product-sneaker.webp" alt="" style="display:block;width:100%;height:80px;object-fit:cover;border-radius:4px"></div><input type="checkbox" aria-label="Sneaker Weiß"></oc-selection-tile-v2>
color: 1.5rem × 1.5rem
image: 1.5rem × 1.5rem
HTML
<p class="demo-label">color: 1.5rem × 1.5rem</p>
<oc-selection-tile-v2 variant="color" color="var(--oc-semantic-color-background-block-mint)"><input type="checkbox" aria-label="Mint"></oc-selection-tile-v2>
<p class="demo-label">image: 1.5rem × 1.5rem</p>
<oc-selection-tile-v2 variant="image" img-src="/previews/imagery/samples/otto-product-still/product-sneaker.webp"><input type="checkbox" aria-label="Weiß"></oc-selection-tile-v2>
Swatch 1.5rem, hitbox 2rem, 8px apart
HTML
<p class="demo-label">Swatch 1.5rem, hitbox 2rem, 8px apart</p>
<oc-selection-tile-v2 variant="color" color="var(--oc-semantic-color-background-block-mint)"><input type="radio" name="st-hit" aria-label="Mint"></oc-selection-tile-v2>
<oc-selection-tile-v2 variant="color" color="var(--oc-semantic-color-background-block-mint)"><input type="radio" name="st-hit" aria-label="Mint 2"></oc-selection-tile-v2>
<oc-selection-tile-v2 variant="color" color="var(--oc-semantic-color-background-block-mint)"><input type="radio" name="st-hit" aria-label="Mint 3"></oc-selection-tile-v2>
<oc-selection-tile-v2 variant="color" color="var(--oc-semantic-color-background-block-mint)"><input type="radio" name="st-hit" aria-label="Mint 4"></oc-selection-tile-v2>
<oc-selection-tile-v2 variant="color" color="var(--oc-semantic-color-background-block-mint)"><input type="radio" name="st-hit" aria-label="Mint 5"></oc-selection-tile-v2>
Placement
When placing multiple selection tiles horizontally or vertically next to each other, ensure there is at least a 8px gap between them.
8px gap in both directions
HTML
<p class="demo-label">8px gap in both directions</p>
<div class="gap-8" style="display:grid;grid-template-columns:repeat(2,max-content)">
<oc-selection-tile-v2><label slot="content">36</label><input type="radio" name="st-place" aria-label="oc-auto"></oc-selection-tile-v2>
<oc-selection-tile-v2><label slot="content">38</label><input type="radio" name="st-place" aria-label="oc-auto"></oc-selection-tile-v2>
<oc-selection-tile-v2><label slot="content">40</label><input type="radio" name="st-place" aria-label="oc-auto"></oc-selection-tile-v2>
<oc-selection-tile-v2><label slot="content">42</label><input type="radio" name="st-place" aria-label="oc-auto"></oc-selection-tile-v2>
Best practices
Accessibility
Implementation
Live demo
Sneaker
Low-Top Sneaker aus Leder
79,99 € 99,99 €
Farbe: Weiß
Größe
HTML
<div style="max-width:760px;margin:0 auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:32px;align-items:start">
<div style="position:relative;border-radius:12px;overflow:hidden;background:var(--oc-semantic-color-background-frame,#f0f0f0)">
<img src="/previews/imagery/samples/otto-product-still/product-sneaker.webp" alt="Sneaker in Weiß" style="display:block;width:100%;aspect-ratio:1;object-fit:cover">
<div style="position:absolute;top:12px;right:12px"><oc-icon-button-v3 variant="secondary-over-color" size="100" icon="wishlist" oc-aria-label="Merken"></oc-icon-button-v3></div>
<div style="display:grid;gap:20px">
<div style="display:grid;gap:4px">
<p class="oc-copy-75 oc-text-color-secondary">Sneaker</p>
<p class="oc-headline-100">Low-Top Sneaker aus Leder</p>
<p class="oc-headline-100" style="color:var(--oc-semantic-color-text-sale,#c4002b)">79,99 € <span class="oc-copy-75 oc-text-color-secondary" style="font-weight:400;text-decoration:line-through">99,99 €</span></p>
<div style="display:grid;gap:8px">
<p class="oc-copy-100"><b>Farbe:</b> Weiß</p>
<oc-selection-tile-v2 variant="image" img-src="/previews/imagery/samples/otto-product-still/product-sneaker.webp"><input type="radio" name="pdp-color" checked aria-label="Weiß"></oc-selection-tile-v2>
<oc-selection-tile-v2 variant="color" color="var(--oc-semantic-color-background-block-beige)"><input type="radio" name="pdp-color" aria-label="Beige"></oc-selection-tile-v2>
<oc-selection-tile-v2 variant="color" color="var(--oc-semantic-color-background-block-blue)"><input type="radio" name="pdp-color" aria-label="Hellblau"></oc-selection-tile-v2>
<oc-selection-tile-v2 variant="color" strike-through color="var(--oc-semantic-color-background-block-pink)"><input type="radio" name="pdp-color" disabled aria-label="Rosa, ausverkauft"></oc-selection-tile-v2>
<div style="display:grid;gap:8px">
<p class="oc-copy-100"><b>Größe</b></p>
<div class="gap-8" role="radiogroup" aria-label="Größe" style="display:grid;grid-template-columns:repeat(4,1fr)">
<oc-selection-tile-v2 width-behavior="fill"><label slot="content" style="display:block;width:100%;text-align:center">38</label><input type="radio" name="pdp-size" aria-label="oc-auto"></oc-selection-tile-v2>
<oc-selection-tile-v2 width-behavior="fill"><label slot="content" style="display:block;width:100%;text-align:center">39</label><input type="radio" name="pdp-size" checked aria-label="oc-auto"></oc-selection-tile-v2>
<oc-selection-tile-v2 width-behavior="fill" strike-through><label slot="content" style="display:block;width:100%;text-align:center">40</label><input type="radio" name="pdp-size" disabled aria-label="oc-auto"></oc-selection-tile-v2>
<oc-selection-tile-v2 width-behavior="fill"><label slot="content" style="display:block;width:100%;text-align:center">41</label><input type="radio" name="pdp-size" aria-label="oc-auto"></oc-selection-tile-v2>
<oc-button-v1 variant="primary" icon-type-left="basket">In den Warenkorb</oc-button-v1>