Skip to content

Commit

Permalink
fix: check for fill
Browse files Browse the repository at this point in the history
  • Loading branch information
Niznikr committed Sep 24, 2024
1 parent 616c08a commit 15485a9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/chip/src/Chip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const Chip = ({
key: 'icon',
...(size === 'small' && { size }),
'aria-hidden': true,
className: cx(icon.props.className, styles.icon, size === 'tiny' && styles.tiny),
className: cx(icon.props.className, styles.icon, size === 'tiny' && styles.tinyIcon),
});

const classes = cx(
Expand Down
2 changes: 1 addition & 1 deletion packages/chip/src/styles/Chip.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
margin-right: 0.125rem;
}

.tiny {
.tinyIcon {
width: 0.625rem;
height: 0.625rem;
}
2 changes: 1 addition & 1 deletion packages/icons/src/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const Icon = ({
aria-hidden={props['aria-hidden'] ?? (!props['aria-labelledby'] && !props['aria-label'])}
focusable={focusable}
role={role}
className={icon({ size, variant, className })}
className={icon({ size, variant: props.fill ? null : variant, className })}
{...props}
{...labelProps}
>
Expand Down

0 comments on commit 15485a9

Please sign in to comment.