Skip to content

Commit 698c8df

Browse files
committed
fix: styling for select picker
1 parent 7f0624b commit 698c8df

File tree

3 files changed

+215
-257
lines changed

3 files changed

+215
-257
lines changed

src/Shared/Components/SelectPicker/common.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ import { Tooltip } from '@Common/Tooltip'
4040
import { TooltipProps } from '@Common/Tooltip/types'
4141
import { SelectPickerGroupHeadingProps, SelectPickerOptionType, SelectPickerProps } from './type'
4242
import { getGroupCheckboxValue } from './utils'
43-
import {
44-
SELECT_PICKER_VALUE_CONTAINER_CUSTOM_PLACEHOLDER_CLASS,
45-
SELECT_PICKER_VALUE_CONTAINER_CUSTOM_TEXT_CLASS,
46-
} from './constants'
4743

4844
const getTooltipProps = (tooltipProps: SelectPickerOptionType['tooltipProps'] = {}): TooltipProps => {
4945
if (tooltipProps) {
@@ -133,11 +129,7 @@ export const SelectPickerValueContainer = <OptionValue, IsMulti extends boolean>
133129
<components.ValueContainer {...props}>
134130
{customDisplayText && selectedOptionsLength > 0 && !isFocussed ? (
135131
<>
136-
<p
137-
className={`m-0 fs-13 fw-4 lh-20 cn-9 dc__truncate ${SELECT_PICKER_VALUE_CONTAINER_CUSTOM_TEXT_CLASS}`}
138-
>
139-
{customDisplayText}
140-
</p>
132+
<p className="m-0 fs-13 fw-4 lh-20 cn-9 dc__truncate">{customDisplayText}</p>
141133
<div className="dc__position-abs">
142134
{Children.map(children, (child, index) => {
143135
if (index === childrenLength - 1) {

src/Shared/Components/SelectPicker/constants.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,3 @@ export const SELECT_PICKER_CONTROL_SIZE_MAP: Record<SelectPickerProps['size'], C
1919
[ComponentSizeType.medium]: 'auto',
2020
[ComponentSizeType.large]: '36px',
2121
}
22-
23-
export const SELECT_PICKER_VALUE_CONTAINER_CUSTOM_TEXT_CLASS = 'select-picker__value-container-custom-text'
24-
export const SELECT_PICKER_VALUE_CONTAINER_CUSTOM_PLACEHOLDER_CLASS =
25-
'select-picker__value-container-custom-placeholder'

0 commit comments

Comments
 (0)