1uphealth / fhir-react

FHIR React Component Library
MIT License
99 stars 30 forks source link

Badge - Atomic UI Component (rework) #281

Closed pslawinski-htd closed 3 years ago

pslawinski-htd commented 3 years ago

Issue: Badge - Atomic UI Component


PR Checklist

Why are these changes needed?

The badge component had to be updated to correspond with the updated design. This is an atomic component so this PR is responsible only for badge styling. Some of the statuses still don't have color coding determined - it'll be completed in a different PR.

What changed?

Styles and some util functions were added.

Zrzut ekranu 2021-11-10 o 13 35 07 Zrzut ekranu 2021-11-10 o 13 35 22

How are these changes tested?

It was assessed visually and functions were tested with unit tests. Here'e the link to the deployed storybook: link

pslawinski-htd commented 3 years ago

@btmikolajczyk I addressed your change requests