From 97a3ccdf4fa80e4f3e1193736558ec53289be8cf Mon Sep 17 00:00:00 2001 From: vicky-comeau Date: Mon, 29 Apr 2024 16:01:31 -0400 Subject: [PATCH] small pr fixes --- packages/components/src/chip/src/Chip.module.css | 8 ++------ packages/components/src/chip/src/Chip.tsx | 15 ++++----------- 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/packages/components/src/chip/src/Chip.module.css b/packages/components/src/chip/src/Chip.module.css index 68201ad60..f01ea5f6a 100644 --- a/packages/components/src/chip/src/Chip.module.css +++ b/packages/components/src/chip/src/Chip.module.css @@ -222,7 +222,7 @@ min-inline-size: 0; - text-align:center; + text-align: center; text-overflow: ellipsis; } @@ -231,8 +231,4 @@ flex: 0 0 auto; flex-wrap: nowrap; order: 3; -} - - - - +} \ No newline at end of file diff --git a/packages/components/src/chip/src/Chip.tsx b/packages/components/src/chip/src/Chip.tsx index e88b6ac4e..9604243c3 100644 --- a/packages/components/src/chip/src/Chip.tsx +++ b/packages/components/src/chip/src/Chip.tsx @@ -24,13 +24,6 @@ const ChipToTextSizeAdapter: SizeAdapter = lg: "sm" }; -const ChipToIconSizeAdapter: SizeAdapter = { - xs: "sm", - sm: "sm", - md: "sm", - lg: "sm" -}; - export interface ChipProps extends StyledSystemProps, BaseComponentProps { /** * A Chip can vary in size. @@ -88,11 +81,11 @@ function Chip(props:ChipProps, ref: ForwardedRef) { [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"] } } @@ -100,11 +93,11 @@ function Chip(props:ChipProps, ref: ForwardedRef) { [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"] } }