Skip to content

Commit

Permalink
Fix small style
Browse files Browse the repository at this point in the history
  • Loading branch information
rivka-ungar committed May 16, 2024
1 parent cb93e23 commit 54fffc5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
10 changes: 4 additions & 6 deletions packages/core/src/components/Label/Label.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -147,17 +147,15 @@
background-color: var(--positive-color-selected);
}
}

.smallText {
line-height: 14px;
}
}

.small {
padding: 0 var(--spacing-xs);
border-radius: 2px;

&.kindLine {
span {
line-height: 14px;
}
}
}

@include keyframe(label-spin-in-emphasized) {
Expand Down
7 changes: 6 additions & 1 deletion packages/core/src/components/Label/Label.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,12 @@ const Label: VibeComponent<LabelProps> & {
color={Text.colors.ON_INVERTED}
data-celebration-text={isCelebrationAnimation}
>
<Text element="span" type={mapSizesToTextSize[size]} color={Text.colors.INHERIT}>
<Text
element="span"
type={mapSizesToTextSize[size]}
color={Text.colors.INHERIT}
className={cx({ [styles.smallText]: size === "small" })}
>
{text}
</Text>
<span className={cx(styles.legWrapper)}>{isLegIncluded ? <Leg /> : null}</span>
Expand Down

0 comments on commit 54fffc5

Please sign in to comment.