From d48a92d158b9a8f318c42d86a0c9804f897b4e95 Mon Sep 17 00:00:00 2001 From: Achintha Isuru Date: Tue, 21 Nov 2023 14:26:31 +0530 Subject: [PATCH] (fix) remove hardcoded values in chip and autocomplete. --- .../src/components/Autocomplete/autocomplete.scss | 11 ++++++++--- packages/react/src/components/Chip/chip.scss | 3 --- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/react/src/components/Autocomplete/autocomplete.scss b/packages/react/src/components/Autocomplete/autocomplete.scss index ea97fb59..e9586ab3 100644 --- a/packages/react/src/components/Autocomplete/autocomplete.scss +++ b/packages/react/src/components/Autocomplete/autocomplete.scss @@ -17,10 +17,15 @@ */ .oxygen-autocomplete { - padding-top: 14px; - padding-bottom: 14px; - .MuiButtonBase-root { + font-size: 0.8125rem; + } + + .MuiChip-sizeSmall { + height: 24px; + } + + .MuiChip-sizeMedium { height: 32px; } } diff --git a/packages/react/src/components/Chip/chip.scss b/packages/react/src/components/Chip/chip.scss index 50606fe7..d2120445 100644 --- a/packages/react/src/components/Chip/chip.scss +++ b/packages/react/src/components/Chip/chip.scss @@ -17,9 +17,6 @@ */ .oxygen-chip { - font-size: 0.8571rem !important; - padding: 7px 3px !important; - &-premium { background: var(--oxygen-customComponents-Chip-properties-premium-background); color: var(--oxygen-customComponents-Chip-properties-premium-text-color);