Tag

Tag

Red Magenta Purple Blue Cyan Teal Green Gray Cool-Gray Warm-Gray
Code:
<!--
  Copyright IBM Corp. 2016, 2018

  This source code is licensed under the Apache-2.0 license found in the
  LICENSE file in the root directory of this source tree.
-->

<div role="list">
  <span class="bx--tag bx--tag--red" role="listitem">Red</span>
  <span class="bx--tag bx--tag--magenta" role="listitem">Magenta</span>
  <span class="bx--tag bx--tag--purple" role="listitem">Purple</span>
  <span class="bx--tag bx--tag--blue" role="listitem">Blue</span>
  <span class="bx--tag bx--tag--cyan" role="listitem">Cyan</span>
  <span class="bx--tag bx--tag--teal" role="listitem">Teal</span>
  <span class="bx--tag bx--tag--green" role="listitem">Green</span>
  <span class="bx--tag bx--tag--gray" role="listitem">Gray</span>
  <span class="bx--tag bx--tag--cool-gray" role="listitem">Cool-Gray</span>
  <span class="bx--tag bx--tag--warm-gray" role="listitem">Warm-Gray</span>
</div>

<div role="list">
</div>

Tag filter

filter
Code:
<!--
  Copyright IBM Corp. 2016, 2018

  This source code is licensed under the Apache-2.0 license found in the
  LICENSE file in the root directory of this source tree.
-->

<div role="list">
</div>

<div role="list">
  <span class="bx--tag bx--tag--filter" title="Clear filter" tabindex="0" role="listitem">
    filter
    <svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" aria-label="Clear filter" width="16" height="16" viewBox="0 0 16 16" role="img"><path d="M12 4.7L11.3 4 8 7.3 4.7 4 4 4.7 7.3 8 4 11.3 4.7 12 8 8.7 11.3 12 12 11.3 8.7 8z"></path></svg>
  </span>
</div>

Documentation

SCSS

Mixins

Mixins specific to tag are located in src/components/tag/_mixins.scss.

Name Params Description
tag-theme $bg-color, $text-color Adds given background-color and text color