pharos icon indicating copy to clipboard operation
pharos copied to clipboard

Badge: A component for quick content identification

Open daneah opened this issue 4 years ago • 0 comments

The problem

JSTOR has a wide variety of content types, and it's useful to check at a glance what type of content a particular item is across search, browse, and detail contexts. We use a small, all-caps badge to display this information. Right now we're still using Foundation's badge directly, or have re-created that as a one-off in new code.

The solution

Formalize the badge as a new component.

Additional information

Screen Shot 2021-08-06 at 11 15 58

The current styling is roughly:

font-size: var(--pharos-font-size-small);
font-weight: var(--pharos-font-weight-bold);
line-height: var(--pharos-line-height-medium);
color: var(--pharos-color-text-40);
text-transform: uppercase;

daneah avatar Aug 06 '21 15:08 daneah