Skip to content

Commit 50a074b

Browse files
authored
fix: Improve tag/badge style (#173)
1 parent b82b058 commit 50a074b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/fuselage/src/components/Tag/index.js

+6
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ import { Box } from '../..';
66
export function Tag({
77
variant = 'secondary',
88
disabled,
9+
textStyle = 'micro',
910
round,
1011
onClick,
1112
...props
1213
}) {
1314
return <Box
1415
is='div'
16+
textStyle={textStyle}
1517
componentClassName='rcx-tag'
1618
mod-secondary={variant === 'secondary'}
1719
mod-primary={variant === 'primary'}
@@ -25,6 +27,10 @@ export function Tag({
2527
}
2628

2729
Tag.propTypes = {
30+
textStyle: PropTypes.oneOf([
31+
'h1', 's1', 's2', 'p1', 'p2', 'c1', 'c2', 'micro', 'mono',
32+
'headline', 'subtitle', 'paragraph', 'caption',
33+
]),
2834
variant: PropTypes.oneOf(['secondary', 'primary', 'danger']),
2935
round: PropTypes.bool,
3036
disabled: PropTypes.bool,

packages/fuselage/src/components/Tag/styles.scss

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
border-radius: $spaces-x4;
1313

14-
@include use-text-style(micro);
15-
1614
&--secondary {
1715
color: $colors-b500;
1816
background-color: $colors-b100;

0 commit comments

Comments
 (0)