Skip to content

Commit

Permalink
fix: Improve tag/badge style (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Mar 20, 2020
1 parent b82b058 commit 50a074b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 6 additions & 0 deletions packages/fuselage/src/components/Tag/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ import { Box } from '../..';
export function Tag({
variant = 'secondary',
disabled,
textStyle = 'micro',
round,
onClick,
...props
}) {
return <Box
is='div'
textStyle={textStyle}
componentClassName='rcx-tag'
mod-secondary={variant === 'secondary'}
mod-primary={variant === 'primary'}
Expand All @@ -25,6 +27,10 @@ export function Tag({
}

Tag.propTypes = {
textStyle: PropTypes.oneOf([
'h1', 's1', 's2', 'p1', 'p2', 'c1', 'c2', 'micro', 'mono',
'headline', 'subtitle', 'paragraph', 'caption',
]),
variant: PropTypes.oneOf(['secondary', 'primary', 'danger']),
round: PropTypes.bool,
disabled: PropTypes.bool,
Expand Down
2 changes: 0 additions & 2 deletions packages/fuselage/src/components/Tag/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

border-radius: $spaces-x4;

@include use-text-style(micro);

&--secondary {
color: $colors-b500;
background-color: $colors-b100;
Expand Down

0 comments on commit 50a074b

Please sign in to comment.