Back to Tag-guidelines

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

Use tags to label, categorize, or organize items using keywords that describe them.

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/tag@14.1.0

Table of Contents

Edit this section, Opens in new window

Usage

Default markup

Here is the default tag implementation code for HTML. Features implementation code is listed next to each feature element.

<button class="if tag" aria-label="Remove Orwell โ€ฆ">
  Orwell
</button>
<button class="if tag input" aria-label="Remove Orwell โ€ฆ">
  Orwell
</button>
<a href="/asds" class="if tag">
  Private
</a>
<ul class="if tags">
  <li class="if">
    <button class="if tag" aria-label="Remove Orwell from the list">
      Orwell
    </button>
  </li>
  โ€ฆ
</ul>

Colors

Tags can have different, predefined, colors to emphasize:

<a href="/sadsd" class="if tag [aquamarine|mint|yellow|pink]">
  Baltic
</a>

Category tag

<a href="/sadsd" class="if tag">
  Baltic
</a>

Filter tag

<button class="if tag" type="button">Orwell</button>

Input tag

<button class="if tag input" type="button">Orwell</button>

Status tag

Success
<span class="if tag status success">
  Success
</span>

A status tag is a tag that is put by itself in another context, for example to label the status of an invoice etc. You should not wrap it in a list, since it is only natural to have one occurence of this tag.

  • Error
  • Success
<ul class="if tags">
  <li class="if">
    <span class="if tag status error">
      Error
    </span>
  </li>
  <li class="if">
    <span class="if tag status error">
      Success
    </span>
  </li>
</ul>

Do not put status tags in a list

Error
<span class="if tag status error">
  Error
</span>
Place a status tag as a standalone element in the context.
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

  • โœ๏ธ Separate out CSS and JS documentation (1922124), closes #467386
  • โœ๏ธ 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!
  • ๐Ÿงจ The JS for the Tag Component is now in a separate scope: @ids-js/tag

13.12.0 (2021-10-22)

Features

13.11.0 (2021-10-19)

Features

  • ๐ŸŽธ Input field hot reload (eac76b7)

13.9.2 (2021-09-30)

Bug Fixes

  • ๐Ÿ› Complete the pseudo-element fix (1dcee2c)

13.6.3 (2021-09-17)

Bug Fixes

12.13.1 (2021-08-11)

Bug Fixes

  • ๐Ÿ› Whitelist docs dir for npm packaging (1a5cfd0), closes #457621

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)

Bug Fixes

  • ๐Ÿ› Update references (c08f107)

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
  • ๐Ÿงจ Notification is now renamed to Alert Banner
  • ๐Ÿงจ This extracts the Hero variation with no image into a separate, design

updated component named Header

  • ๐Ÿงจ Footer is now renamed to Global Footer

Bug Fixes

12.13.1 (2021-08-11)

Bug Fixes

  • ๐Ÿ› Whitelist docs dir for npm packaging (1a5cfd0), closes #457621

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)

Bug Fixes

  • ๐Ÿ› Update references (c08f107)

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
  • ๐Ÿงจ Notification is now renamed to Alert Banner
  • ๐Ÿงจ This extracts the Hero variation with no image into a separate, design

updated component named Header

  • ๐Ÿงจ Footer is now renamed to Global Footer

7.1.0 (2020-11-16)

Features

  • ๐ŸŽธ Add support for auto generation of components index (9444600), closes #309650

6.36.0 (2020-10-12)

Features

  • ๐ŸŽธ Add updated focus styling for tag (42f6e58)

6.35.0 (2020-09-29)

Features

  • ๐ŸŽธ Add input tags, update documentation (fa45ab8)

6.33.0 (2020-09-28)

Features

  • ๐ŸŽธ Add new component tag (b8aa099)
Edit this section, Opens in new window
Contact us, Opens in new window