Refactor Text component to use Box color prop #18209
Labels
area-UI
Relating to the user interface.
team-design-system
All issues relating to design system in Extension
Description
Currently the
Text
component is using it's own logic and classNames to decide on the csscolor
. This is creating extra classNames and CSS that isn't necessary as well as complicates tests when change the root component fromBox
toText
.The
Text
component should be refactored to just utilize theBox
color prop instead of creating it's own versionTechnical Details
color
prop logic and css from the Text componentAcceptance Criteria
Text
component uses theBox
componentcolor
propText
component should just check for thebox--color-[color]
The text was updated successfully, but these errors were encountered: