Skip to content

Commit

Permalink
Merge pull request #763 from gympass/refactor/text-chips
Browse files Browse the repository at this point in the history
🚀 refactor(chips): adjust chips texts
  • Loading branch information
rafaelcoletagympass authored Mar 20, 2024
2 parents 90d26ef + e4ca904 commit f020de7
Show file tree
Hide file tree
Showing 4 changed files with 329 additions and 346 deletions.
6 changes: 1 addition & 5 deletions packages/yoga/src/Chips/native/Chips.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,7 @@ const Wrapper = styled.View.attrs(({ theme: { yoga } }) => {
`;

const StyledChips = styled(Text)`
font-size: ${theme.fontSizes.xsmall}px;
line-height: ${theme.lineHeights.xsmall}px;
flex-shrink: 1;
${({ disabled }) =>
disabled
? css`
Expand Down Expand Up @@ -125,7 +121,7 @@ const Chips = React.forwardRef(
)}
<StyledChips
disabled={disabled}
as={selected ? Text.Bold : Text}
as={selected || disabled ? Text.Overline : Text.Caption}
selected={selected}
numberOfLines={1}
>
Expand Down
Loading

0 comments on commit f020de7

Please sign in to comment.