Vue playground

Nova v3.38.0

Preview

Vue

nv-statusindicator migration

How the emphasis levels and default icons changed to match Figma, and how to keep the previous look.

← nv-statusindicator

Migration Guide for nv-statusindicator

The nv-statusindicator component now matches the Figma Status indicator. This page lists the visual changes and how to adapt code that relied on the previous look.

Visual Changes#

1. emphasis="high" -> emphasis="medium"#

emphasis now has three levels: low (border only, the default), medium (light background) and high (high-contrast background). medium is the look that high rendered until now, so applications that use emphasis="high" change appearance.

To keep the previous look, replace high with medium. After the Figma library update, designs that used High show Medium, so this replacement keeps code and design aligned. Use high only where the design shows the Figma High emphasis.

Old Usage:

html<nv-statusindicator
  status="success"
  emphasis="high"
  label="Online"
></nv-statusindicator>

New Usage:

html<nv-statusindicator
  status="success"
  emphasis="medium"
  label="Online"
></nv-statusindicator>

2. Default icons of warning and error#

The default icons of warning and error are swapped to match Figma: warning now uses alert-circle and error uses alert-triangle. Success, information and neutral keep circle-check, info-circle and help.

New Properties#

1. icon: Sets the icon of the indicator instead of the default icon of the status.#

Use it to keep a specific icon, for example the previous icon of warning.

New Usage:

html<nv-statusindicator
  status="warning"
  icon="alert-triangle"
  label="Degraded"
></nv-statusindicator>