Tag

A label/keyword chip, optionally linked and optionally removable. Use for labels on issues, filters, and topic chips. Plain text children render as a static chip; an <a> child makes it navigable; a .tag-remove button makes it dismissible.

Root: .tag on <span>

Examples

Example 1
design
<span class="tag">design</span>
Example 2
<span class="tag"><a href="#">frontend</a><button class="tag-remove" aria-label="Remove frontend">×</button></span>

Contract

Variants & modifiers

ClassAxisRules
tag-roundedmodifieroptional

Structure

SelectorRequiredDescription
aoptionalOptional link child; inherits chip color, underlines on hover.
button.tag-removeoptionalOptional remove button rendered after the label; shows danger colors on hover. Must be a <button> for keyboard operability.

Accessibility

OnAttributeLevelWhen
.tag-removearia-labelrequired

Give .tag-remove an aria-label that names what it removes (e.g. aria-label="Remove frontend"), not just "Remove". The chip itself is non-interactive; interactivity lives on the inner <a>/<button> so it stays keyboard-reachable.

Nesting

Allowed in:

  • inline text
  • issue detail headers
  • filter rows

Never inside (or containing):

  • .tag