Project portfolio Browse selected work

Shopify Plus Upgrade Monthly Fee Reduction + Up to $4800 Development Fee Credit - Exclusive WesWoo Offer

Search
Pointers, buttons & menus

Size guide and unit switch

Open the size chart and switch between centimeters and inches.

Preparing preview

size-guide-units.html
<section class="fx size-guide" lang="en" aria-label="Size guide demo">
  <div class="cols">
    <div>
      <h2>Find your size</h2>
      <p class="intro">Compare the sample garment measurements before choosing.</p>
      <button type="button" class="primary" data-size-open>Open size guide</button>
    </div>
    <img class="product-photo" src="__WW_VISUAL_1__" alt="Sage graphic T-shirt">
  </div>
  <dialog aria-labelledby="size-title">
    <div class="row guide-head"><h3 id="size-title">Garment measurements</h3><button type="button" data-close>Close</button></div>
    <div class="row" role="group" aria-label="Measurement units">
      <button type="button" data-unit="cm" aria-pressed="true">cm</button>
      <button type="button" data-unit="in" aria-pressed="false">in</button>
    </div>
    <table><caption>Sample chart <span data-unit-label>(cm)</span></caption>
      <thead><tr><th scope="col">Size</th><th scope="col">Width</th><th scope="col">Length</th></tr></thead>
      <tbody><tr><th scope="row">S</th><td data-cm="48">48</td><td data-cm="66">66</td></tr>
       <tr><th scope="row">M</th><td data-cm="51">51</td><td data-cm="69">69</td></tr>
       <tr><th scope="row">L</th><td data-cm="54">54</td><td data-cm="72">72</td></tr></tbody>
    </table>
    <p class="status" role="status" data-units-status>Showing centimeters.</p>
  </dialog>
</section>