Skip to content

Add Badge pattern #1643

@davidkudera

Description

@davidkudera

Currently, there is no badge component.

Spectrum: https://spectrum.adobe.com/page/badge/
Spectrum CSS: https://opensource.adobe.com/spectrum-css/label.html


I'm not sure if the Spectrum CSS Label is compatible with the Spectrum Badge or if it even matters... I can see two possible ways of how to implement this:

  1. Wait with this issue until [SDL, Badge, 1.0.0] Add "Badge" component - Make a prototype spectrum-css#598 is done
  2. Implement it based on the current Label component and change it later to use the new Badge component

The name should be (I think) in both cases <sp-badge>. I could also probably help by preparing a PR with an initial implementation.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions