Accordion

The accordion is used for FAQ sections.

Sartorial post-ironic mumblecore single-origin coffee. Chicharrones godard dreamcatcher trust fund mumblecore 90's cred wayfarers.

Migas VHS schlitz lumbersexual ramps. Tousled hoodie cold-pressed poke, cloud bread roof party kale chips la croix try-hard.

<div class="Accordion">
    <button class="Accordion-top">
        Ramps hammock selfies, trust fund vaporware dreamcatcher deep v austin poke disrupt?
        <div>
            <svg class="Icon spin" title="plus icon" role="img" accordion-plus="">
                <use xlink:href="#plus"></use>
            </svg>
            <svg class="Icon is-hidden spin" title="minus icon" role="img" accordion-minus="">
                <use xlink:href="#minus"></use>
            </svg>
        </div>
    </button>
    <div class="Accordion-bottom is-slide-closed">
        <p class="Accordion-bottom-text">Sartorial post-ironic mumblecore single-origin coffee. Chicharrones godard dreamcatcher trust fund
        mumblecore 90's cred wayfarers.</p>
    </div>
</div>
<div class="Accordion">
    <button class="Accordion-top">
        Coloring book la croix iPhone forage hoodie. Kinfolk bitters migas snackwave vegan butcher?
        <div>
            <svg class="Icon spin" title="plus icon" role="img" accordion-plus>
                <use xlink:href="#plus"></use>
            </svg>
            <svg class="Icon is-hidden spin" title="minus icon" role="img" accordion-minus>
                <use xlink:href="#minus"></use>
            </svg>
        </div>
    </button>
    <div class="Accordion-bottom is-slide-closed">
        <p class="Accordion-bottom-text">Migas VHS schlitz lumbersexual ramps. Tousled hoodie cold-pressed poke, cloud bread roof party kale chips
            la croix try-hard.</p>
    </div>
</div>

Alerts

Alerts are used to call users attention to specific information via increased visual hierarchy.

Note:

  • Headings are optional
  • sections are used for Style Guide presentation purposes

Lorem ipsum dolor amet bitters tbh +1 mlkshk, single-origin coffee four loko hoodie ethical shaman.

Error

Trust fund quinoa +1 kombucha poke chicharrones twee tumeric man bun. Intelligentsia tattooed artisan, typewriter tote bag gochujang roof party YOLO.

Health goth schlitz knausgaard tousled fashion axe lomo poke keffiyeh. Banh mi tumeric deep v letterpress butcher raw denim beard, pinterest tilde waistcoat messenger bag ennui iceland snackwave.

Success

Mumblecore kickstarter kale chips vaporware literally lo-fi tousled irony.

Info

Lyft thundercats viral, knausgaard street art venmo vegan migas tumeric hella food truck bushwick.

<div class="section">

    <div class="Alert">
        <p>Lorem ipsum dolor amet bitters tbh +1 mlkshk, single-origin coffee four loko <a href="">hoodie ethical shaman</a>.</p>
    </div>

</div>
<div class="section">

    <div class="Alert Alert--error">
        <span class="Alert-title">Error</span>
        <p>Trust fund quinoa +1 <a href="">kombucha poke chicharrones</a> twee tumeric man bun. Intelligentsia tattooed artisan, typewriter tote bag gochujang roof party YOLO.</p>
        <p>Health goth schlitz knausgaard tousled fashion axe lomo poke keffiyeh. Banh mi tumeric deep v letterpress butcher raw denim beard, pinterest tilde waistcoat messenger bag ennui iceland snackwave.</p>
    </div>

</div>
<div class="section">

    <div class="Alert Alert--success">
        <span class="Alert-title">Success</span>
        <p>Mumblecore kickstarter <a href="">kale chips</a> vaporware literally lo-fi tousled irony.</p>
    </div>

</div>

<div class="Alert Alert--info">
    <span class="Alert-title">Info</span>
    <p>Lyft thundercats viral, knausgaard street art venmo vegan migas tumeric <a href="">hella food truck</a> bushwick.</p>
</div>

Banner

Banners are used at the top of a page for promotional purposes. These are distinctly different from Notifications which are not used in promotional or marketing context.

The Banner module must be placed immediately after the sites primary header and before the pageContainer.

<!-- Default Banner -->
<header class="Navbar">  <!-- Site Primary Header -->
    <nav class="Navbar-nav" role="navigation" aria-label="main navigation" data-navbar>
        <div class="Navbar-brand">
            <a class="Navbar-item BrandLogo BrandLogo--responsive" href="/" title="Travel Insurance Direct">
            </a>
            <button class="Navbar-toggle" aria-label="menu" aria-expanded="false" data-navbar-toggle>
                <div class="Navbar-icon"></div>
            </button>
        </div>
    </nav>
</header>
<aside class="Banner">
    <div class="container">
        <strong>Promotion or announcement:</strong> all of January
    </div>
</aside>
<main class="pageContainer"> <!-- pageContainer element -->
</main>

<!-- Script to demonstrate the Countdown Banner (not for PRODUCTION!) -->
<script type="text/javascript">
  var yesterday = new Date(new Date(new Date().setDate(new Date().getDate() - 1)).setHours(0,0,0,0));
  var tomorrow = new Date(new Date(new Date().setDate(new Date().getDate() + 1)).setHours(0,0,0,0));
  var tid = { flashsale: { start: yesterday, end: tomorrow, discount: 12, code: "FLASH0419" } };
  window.tid = tid;
</script>

<!-- Attention Banner -->
<header class="Navbar">  <!-- Site Primary Header -->
    <nav class="Navbar-nav" role="navigation" aria-label="main navigation" data-navbar>
        <div class="Navbar-brand">
            <a class="Navbar-item BrandLogo BrandLogo--responsive" href="/" title="Travel Insurance Direct">
            </a>
            <button class="Navbar-toggle" aria-label="menu" aria-expanded="false" data-navbar-toggle>
                <div class="Navbar-icon"></div>
            </button>
        </div>
    </nav>
</header>
<aside class="Banner Banner--attention" data-banner>
    <div class="container" data-banner-statement>
        <strong><span data-discount></span>% off*</strong> Offer ends in:
        <span class="Banner-countdown">
            <span data-hours></span>:<span data-minutes></span>:<span data-seconds></span>
        </span>
    </div>
</aside>
<main class="pageContainer"> <!-- pageContainer element -->
</main>

Bread Crumbs

<ul itemtype="http://schema.org/BreadcrumbList" class="Breadcrumb">
    <li class="Breadcrumb-item" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
        <a itemprop="item" href="/">
            <span itemprop="name">TID</span>
        </a>
    </li>
    <li class="Breadcrumb-item" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
        <a itemprop="item" href="/">
            <span itemprop="name">Get a quote</span>
        </a>
    </li>
</ul>

<div class="section">
    <div class="Callout Callout--dark Callout--reverse">
        <ul itemtype="http://schema.org/BreadcrumbList" class="Breadcrumb--reverse">
            <li class="Breadcrumb-item" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
                <a itemprop="item" href="/">
                    <span itemprop="name">TID</span>
                </a>
            </li>
            <li class="Breadcrumb-item" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
                <a itemprop="item" href="/">
                    <span itemprop="name">Get a quote</span>
                </a>
            </li>
        </ul>
    </div>
</div>

Caption Cards

Caption Cards are a fantastic way to structure multiple elements on a page. The cards adhere to a five column grid and come in 4 different sizes that stack vertically on smaller screens.

Caption

Lo-fi heirloom thundercats forage AF swag

Letterpress woke twee cornhole salvia fingerstache succulents prism occupy.

Beer me

Caption

Lo-fi heirloom thundercats forage AF swag

Letterpress woke twee cornhole salvia fingerstache succulents prism occupy.

Beer me

Caption

Lo-fi heirloom thundercats forage AF swag

Letterpress woke twee cornhole salvia fingerstache succulents prism occupy.

Beer me

Caption

Lo-fi heirloom thundercats forage AF swag

Letterpress woke twee cornhole salvia fingerstache succulents prism occupy.

Beer me
<div class="CaptionCard spacer-item">
    <picture class="CaptionCard-left">
        <img class="CaptionCard-photo" src="https://picsum.photos/600/300/?image=500">
    </picture>
    <div class="CaptionCard-right">
        <p class="CaptionCard-categoryLabel">Caption</p>
        <p class="CaptionCard-categoryHeading">Lo-fi heirloom thundercats forage AF swag</p>
        <p>Letterpress woke twee cornhole salvia fingerstache succulents prism occupy.</p>
        <a class="Btn Btn--primary Btn--sm">Beer me</a>
    </div>
</div>

<div class="CaptionCard CaptionCard--half spacer-item">
    <picture class="CaptionCard-left">
        <img class="CaptionCard-photo" src="https://picsum.photos/600/300/?image=490">
    </picture>
    <div class="CaptionCard-right">
        <p class="CaptionCard-categoryLabel">Caption</p>
        <p class="CaptionCard-categoryHeading">Lo-fi heirloom thundercats forage AF swag</p>
        <p>Letterpress woke twee cornhole salvia fingerstache succulents prism occupy.</p>
        <a class="Btn Btn--primary Btn--sm">Beer me</a>
    </div>
</div>

<div class="CaptionCard spacer-item">
    <picture class="CaptionCard-left">
        <img class="CaptionCard-photo" src="https://picsum.photos/700/300/?image=501">
    </picture>
    <div class="CaptionCard-right">
        <p class="CaptionCard-categoryLabel">Caption</p>
        <p class="CaptionCard-categoryHeading">Lo-fi heirloom thundercats forage AF swag</p>
        <p>Letterpress woke twee cornhole salvia fingerstache succulents prism occupy.</p>
        <a class="Btn Btn--primary Btn--sm">Beer me</a>
    </div>
</div>

<div class="CaptionCard CaptionCard--invert spacer-item">
    <picture class="CaptionCard-left">
        <img class="CaptionCard-photo" src="https://picsum.photos/600/300/?image=510">
    </picture>
    <div class="CaptionCard-right">
        <p class="CaptionCard-categoryLabel">Caption</p>
        <p class="CaptionCard-categoryHeading">Lo-fi heirloom thundercats forage AF swag</p>
        <p>Letterpress woke twee cornhole salvia fingerstache succulents prism occupy.</p>
        <a class="Btn Btn--primary Btn--sm">Beer me</a>
    </div>
</div>

Cards

Cards are interactive and are used to visually section products and services features. The cards may contain a combination of icon, text and call to action.

Pick a plan.

Biltong shank jowl pastrami shankle bacon swine hamburger salami.

Learn more
<div class="Card">
    <span class="Graphic Graphic--burger spacer-media" title="Burger icon"></span>
    <h3>Pick a plan.</h3>
    <p>Biltong shank jowl pastrami shankle bacon swine hamburger salami.</p>
    <a href="" class="TypeBtn TypeBtn--anchor TypeBtn--inline" alt="Click here to choose your plan">Learn more</a>
</div>

Feature Cards with Tick

Get extra cover.

Spare ribs kevin strip steak burgdoggen pork pancetta sausage tenderloin short loin

Learn more
<div class="Card Card--tick">
    <span class="Graphic Graphic--rocket spacer-media" title="Rocket icon"></span>
    <h3>Get extra cover.</h3>
    <p>Spare ribs kevin strip steak burgdoggen pork pancetta sausage tenderloin short loin</p>
    <a href="" class="TypeBtn TypeBtn--anchor TypeBtn--inline" alt="Learn more about our Extra Cover">Learn more</a>
</div>

Interactive State

Mouse over the card

<a href="#" class="Card Card--tick Card--touch" alt="Learn more about our Emergency Assistance">
    <span class="Graphic Graphic--deskbell spacer-media" title="Desk bell icon"></span>
    <h3>Emergency Assitance.</h3>
    <p>Filet mignon drumstick prosciutto biltong. Corned beef leberkas pork tri-tip.</p>
</a>

Lists

No explanation necessary.

  • Umami lo-fi kickstarter green juice adaptogen.
  • Post-ironic jean shorts mlkshk crucifix pug cardigan cold-pressed.
  • Pour-over intelligentsia venmo, blog iceland fanny pack fam mixtape mumblecore vaporware you probably haven't heard of them.
  1. Pinterest marfa hoodie, pour-over williamsburg polaroid palo santo chia small batch.
  2. Pabst locavore bushwick mustache enamel pin kogi irony microdosing affogato.
  3. Ramps photo booth four dollar toast vaporware skateboard.
<ul class="List">
    <li>Umami lo-fi kickstarter green juice adaptogen.</li>
    <li>Post-ironic jean shorts mlkshk crucifix pug cardigan cold-pressed.</li>
    <li>Pour-over intelligentsia venmo, blog iceland fanny pack fam mixtape mumblecore vaporware you probably haven't heard of them.</li>
</ul>

<ol class="List">
    <li>Pinterest marfa hoodie, pour-over williamsburg polaroid palo santo chia small batch.</li>
    <li>Pabst locavore bushwick mustache enamel pin kogi irony microdosing affogato.</li>
    <li>Ramps photo booth four dollar toast vaporware skateboard.</li>
</ol>

Description List

Learn about dl's: HTML dl

Travellers name
Raoul Duke
Travellers email
[email protected]
Travellers name
Raoul Duke
Travellers email
[email protected]
Travellers name
Raoul Duke
Travellers email
[email protected]
<dl class="DList">
    <div class="DList-row">
        <dt>Travellers name</dt>
        <dd>Raoul Duke</dd>
    </div>
    <div class="DList-row">
        <dt>Travellers email</dt>
        <dd>[email protected]</dd>
    </div>
</dl>

<dl class="DList DList--alt">
    <div class="DList-row">
        <dt>Travellers name</dt>
        <dd>Raoul Duke</dd>
    </div>
    <div class="DList-row">
        <dt>Travellers email</dt>
        <dd>[email protected]</dd>
    </div>
</dl>

<dl class="DList DList--stacked">
    <div class="DList-row">
        <dt>Travellers name</dt>
        <dd>Raoul Duke</dd>
    </div>
    <div class="DList-row">
        <dt>Travellers email</dt>
        <dd>[email protected]</dd>
    </div>
</dl>

Loader

There is some text here

There was some text here

There is some text here

There was some text here

<h1>There is some text here</h1>
<h1 class="Loader">There was some text here</h1>
<p>There is some text here</p>
<p class="Loader">There was some text here</p>
<div>
    <button class="Btn">There is some text here</button>
    <button class="Btn Loader">There was some text here</button>
</div>
<div>
    <button class="Btn Btn--secondary">There is some text here</button>
    <button class="Btn Btn--secondary Loader">There was some text here</button>
</div>

Notifications

Notifications are used to communicate announcements with greater visual impact than an inline alert. These should be used sparingly.

Notes:

  • Individual notifications should be injected within a shared parent that has the NotificationWrapper class.
  • This implementation is for demonstrations purposes only.
<button class="Btn Btn--spaced" id="notification-info">Show info</button>
<button class="Btn Btn--spaced" id="notification-success">Show success</button>
<button class="Btn Btn--spaced" id="notification-error">Show error</button>
<button class="Btn Btn--spaced" id="notification-attention">Show attention</button>

<!-- Inject Notifications here -->
<div class="NotificationWrapper"></div>

<script type="text/javascript">
    $('#notification-info').click(function(){
        var notificationInfo = `
            <div class="Notification Notification--info">
                <button class="Notification-close IconBtn">
                    <svg class="Icon Icon--circle Icon--xlg" title="close icon" role="img">
                        <use xlink:href="#close"></use>
                    </svg>
                </button>
                Yr kale chips PBR&B, 90\'s jean shorts put a bird on it chillwave locavore hell of unicorn selfies.
            </div>
        `
        $('.NotificationWrapper').append(notificationInfo);
    });

    $('#notification-success').click(function(){
        var notificationSuccess = `
            <div class="Notification Notification--success">
                <button class="Notification-close IconBtn">
                    <svg class="Icon Icon--circle Icon--xlg" title="close icon" role="img">
                        <use xlink:href="#close"></use>
                    </svg>
                </button>
                8-bit readymade cloud bread biodiesel direct trade synth waistcoat street art cornhole chambray messenger bag. Retro coloring book pork belly, lyft semiotics leggings ennui photo booth wolf pour-over salvia intelligentsia.
            </div>
        `
        $('.NotificationWrapper').append(notificationSuccess);
    });

    $('#notification-error').click(function(){
        var notificationError = `
            <div class="Notification Notification--error">
                <button class="Notification-close IconBtn">
                    <svg class="Icon Icon--circle Icon--xlg" title="close icon" role="img">
                        <use xlink:href="#close"></use>
                    </svg>
                </button>
                Ugh kombucha lomo, copper.
            </div>
        `
        $('.NotificationWrapper').append(notificationError);
    });

    $('#notification-attention').click(function(){
        var notificationError = `
            <div class="Notification Notification--attention">
                <button class="Notification-close IconBtn">
                    <svg class="Icon Icon--circle Icon--xlg" title="close icon" role="img">
                        <use xlink:href="#close"></use>
                    </svg>
                </button>
                Ugh kombucha lomo, copper mug palo santo leggings 3 wolf moon keytar sustainable post-ironic umami vexillologist semiotics.
            </div>
        `
        $('.NotificationWrapper').append(notificationError);
    });

    $(document.body).on('click', '.Notification .IconBtn', function(){
        var alert = $(this).parent();
        alert.remove();
    });
</script>

Page Progress

The Page Progress module is used to denote the progress of a user across multiple views, typically for multi-page forms.

  1. Choose plan
  2. Customise
  3. Travellers
  4. Payment
<ol class="PgProgress">
    <li class="PgProgress-is-active">Choose plan</li>
    <li class="PgProgress-is-active">Customise</li>
    <li>Travellers</li>
    <li>Payment</li>
</ol>

Pill

The Pill module. Typically used in the country selector.

New Zealand Niger Nicaragua
<span class="Pill">
    New Zealand
</span>
<span class="Pill Pill--primary">
    Niger
</span>
<span class="Pill Pill--secondary">
    Nicaragua
</span>

button pill elements will have a hover shadow:

<button class="Pill Pill--primary">
    <span class="Pill-label">Sweden</span>
    <span class="Pill-close"></span>
</button>
<button class="Pill Pill--secondary">
    <span class="Pill-label">Croatia</span>
    <span class="Pill-close"></span>
</button>

Price Total

Price Total is used for all instances where the total price or a change to price needs to be displayed.

Total price $164.00
Sub-total $16.00
Discounted total $164.00 10% Discount
$24.00 Limited offer
$24.00
<div class="PriceTotal">
    <span class="PriceTotal-label">Total price</span>
    <span class="PriceTotal-amount">$164.00</span>
</div>

<div class="PriceTotal PriceTotal--sm">
    <span class="PriceTotal-label">Sub-total</span>
    <span class="PriceTotal-amount">$16.00</span>
</div>

<div class="PriceTotal">
    <span class="PriceTotal-label">Discounted total</span>
    <span class="PriceTotal-amount">$164.00</span>
    <span class="PriceTotal-tag Tag Tag--alt Tag--attention">10% Discount</span>
</div>

<div class="PriceTotal PriceTotal--sm">
    <span class="PriceTotal-amount">$24.00</span>
    <span class="PriceTotal-tag Tag Tag--alt">Limited offer</span>
</div>

<div class="PriceTotal PriceTotal--sm">
    <svg class="Icon Icon--lg" title="plus icon" role="img">
        <use xlink:href="#plus"></use>
    </svg>
    <span class="PriceTotal-amount">$24.00</span>
</div>

Warning

Warning are used to call users attention to specific information via increased visual hierarchy.

Note:

--message is the message section --title is the title for the message

It looks like you have already bought a policy for this trip.

Please check your inbox. You can view your policy in My Account.
<div class="Warning">
    <svg class="Icon"
        title="attention icon" role="img">
            <use xlink:href="#attention"></use>
    </svg>

    <div class="Warning-message">
        <h3>It looks like you have already bought a policy for this trip.</h3>
        <div>
            Please check your inbox.
            <span *ngIf="isLoggedIn">You can view your policy in My Account.</span>
        </div>
    </div>
    <div class="Warning-footer">
            <button class="Btn Btn--primary Btn--sm"
                data-e2e="payment-back-to-homepage">Back to homepage</button>

            <button class="Btn Btn--secondary Btn--sm"
                data-e2e="payment-continue-purchase">Continue purchase</button>
    </div>
</div>