Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add label support to horizontal default cards (#2513)
* feature: adds label + icon support for horizontal default cards * chore: add isLive to propTypes * chore: update snapshots * chore: tweak to color of label, fill of icon, and size of text * chore: updated snaps * chore: refactor of horizontal default card props * chore: removed unused props and refactor LabelComponent, also update snaps * chore: update snaps * chore: manually updated snap for ContentSingleFeaturesConnected * chore: refactor checkmark logic * chore: abstracted more logic to the initial prop on LabelText * chore: added back label prop for tests * chore: moved the margin from the label text to the icon as a flexed view * chore: move icon padding to its own component and remove label prop * chore: updated connected snaps * chore: added a CompletedLabel component that is conditionally rendered * chore: add a labelColor prop and moved color logic * chore: updated snaps * chore: updated connected snaps * chore: manually update ContentSingleConnected snap * chore: made CompletedLabel a functional component and added a labelColor prop * fix: fixed a prop typo Co-authored-by: nlewis84 <nathan@differential.com>
- Loading branch information
1 parent
718b7fe
commit 602b684
Showing
18 changed files
with
5,446 additions
and
5,083 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.