Skip to content

Commit

Permalink
small pr fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vicky-comeau committed Apr 29, 2024
1 parent ff34af5 commit 97a3ccd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
8 changes: 2 additions & 6 deletions packages/components/src/chip/src/Chip.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@

min-inline-size: 0;

text-align:center;
text-align: center;
text-overflow: ellipsis;
}

Expand All @@ -231,8 +231,4 @@
flex: 0 0 auto;
flex-wrap: nowrap;
order: 3;
}




}
15 changes: 4 additions & 11 deletions packages/components/src/chip/src/Chip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ const ChipToTextSizeAdapter: SizeAdapter<ChipProps["size"], TextProps["size"]> =
lg: "sm"
};

const ChipToIconSizeAdapter: SizeAdapter<ChipProps["size"], IconProps["size"]> = {
xs: "sm",
sm: "sm",
md: "sm",
lg: "sm"
};

export interface ChipProps extends StyledSystemProps, BaseComponentProps {
/**
* A Chip can vary in size.
Expand Down Expand Up @@ -88,23 +81,23 @@ function Chip(props:ChipProps, ref: ForwardedRef<HTMLSpanElement>) {
[IconListContext, {
slots: {
icon: {
size: ChipToIconSizeAdapter[size],
size: "sm",
className: styles["hop-Chip__icon-list"]
},
"end-icon": {
size: ChipToIconSizeAdapter[size],
size: "sm",
className: styles["hop-Chip__end-icon-list"]
}
}
}],
[IconContext, {
slots: {
icon: {
size: ChipToIconSizeAdapter[size],
size: "sm",
className: styles["hop-Chip__icon"]
},
"end-icon": {
size: ChipToIconSizeAdapter[size],
size: "sm",
className: styles["hop-Chip__end-icon"]
}
}
Expand Down

0 comments on commit 97a3ccd

Please sign in to comment.