Back to Header-guidelines

CSS ComponentThe latest version of this package is: 14.1.0, Opens in new window

The Header component is used as a page header or category header.

This component provides .css, .styl, .less and .scss -files.

To be able to install this component, please refer to the Project Setup documentation.

$ npm i @ids-core/header@14.1.0

Myrskyn aiheuttamat vahingot

Myrskyvahingon sattuessa tärkeintä on huolehtia, että ihmiset ja eläimet ovat turvassa sekä estää lisävahinkojen syntyminen.

Table of Contents

Edit this section, Opens in new window

Usage

Required markup

<header class="if header">
  <div class="if container">
    <ol class="if breadcrumbs">
      <li class="if">
        <a class="if" href="/asds" title="If privat">If privat</a>
      </li>
      <li class="if">
        <a class="if" href="/asds" title="Försäkringar">Försäkringar</a>
      </li>
      <li class="if">
        <a class="if" href="/asds" title="Hemförsäkring">Hemförsäkring</a>
      </li>
      <li class="if">
        <a class="if" href="/asds" title="Villaförsäkring">Villaförsäkring</a>
      </li>
    </ol>
    <h1 class="if heading hero-title">Myrskyn aiheuttamat vahingot</h1>
    <p class="if text lead">
      Myrskyvahingon sattuessa tärkeintä on huolehtia, että ihmiset ja eläimet ovat turvassa sekä estää lisävahinkojen
      syntyminen.
    </p>
  </div>
</header>

With actions

<header class="if header">
  <div class="if container">
    <ol class="if breadcrumbs">
      <li class="if">
        <a class="if" href="/asds" title="If privat">If privat</a>
      </li>
      <li class="if">
        <a class="if" href="/asds" title="Försäkringar">Försäkringar</a>
      </li>
      <li class="if">
        <a class="if" href="/asds" title="Hemförsäkring">Hemförsäkring</a>
      </li>
      <li class="if">
        <a class="if" href="/asds" title="Villaförsäkring">Villaförsäkring</a>
      </li>
    </ol>
    <h1 class="if heading hero-title">Myrskyn aiheuttamat vahingot</h1>
    <p class="if text lead">
      Myrskyvahingon sattuessa tärkeintä on huolehtia, että ihmiset ja eläimet ovat turvassa sekä estää lisävahinkojen
      syntyminen.
    </p>
    <button type="button" class="if button primary cta" style="margin-right: 0px;">Start here</button>
    <button type="button" class="if button text">Text button</button>
  </div>
</header>
Edit this section, Opens in new window

Changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

14.0.0 (2021-11-09)

chore

  • 🤖 Rename util to utils (f78721f)

Code Refactoring

  • 💡 Rename scope and repository (3ea5423)
  • 💡 Use new navigation structure for documentation (415aee5), closes #490579

Documentation

  • ✏️ Update links and change navigation structure (0bfd27d), closes #490579

BREAKING CHANGES

  • 🧨 The scope for If Design System npm packages has now changed from

@if-design-system to @ids-core. We have also renamed the repository from if-design-system to ids-core

  • 🧨 Util is now renamed to Utils
  • 🧨 We have now changed the navigation structure for the documentation site.

Please update any saved links!

  • 🧨 Navigation structure has now changed. Please see release notes!

13.11.0 (2021-10-19)

Features

  • 🎸 Input field hot reload (eac76b7)

13.6.3 (2021-09-17)

Bug Fixes

12.13.1 (2021-08-11)

Bug Fixes

12.12.1 (2021-08-10)

Bug Fixes

  • 🐛 Make sure components using fonts, have fonts bundled (d5bb642), closes #354912

12.6.0 (2021-05-27)

Bug Fixes

  • 🐛 Manually set firstPublished and lastModified (e83af7d)
  • 🐛 We don't need lastModified (e458a12)

12.0.0 (2021-05-05)

Code Refactoring

Features

  • 🎸 Rename and extract and update hero with no image to (384eb77), closes #336508

BREAKING CHANGES

  • 🧨 All of the mixins have now been renamed
  • 🧨 This extracts the Hero variation with no image into a separate, design

updated component named Header

Edit this section, Opens in new window
Contact us, Opens in new window