Skip to content

Commit

Permalink
fix(Select): customValueText vertical alignment (#3890)
Browse files Browse the repository at this point in the history
  • Loading branch information
DSil committed Jun 19, 2023
1 parent fe3994e commit 92c3db8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/orbit-components/src/Select/index.tsx
Expand Up @@ -244,11 +244,12 @@ SelectSuffix.defaultProps = {
theme: defaultTheme,
};

const StyledCustomValue = styled(({ theme, ...props }) => <div {...props} />)`
const StyledCustomValue = styled.div<{ $filled?: boolean; $disabled?: boolean; $prefix?: boolean }>`
${({ theme, $filled, $disabled, $prefix }) => css`
color: ${($disabled && theme.orbit.paletteInkLight) ||
($filled ? theme.orbit.colorTextInput : theme.orbit.colorPlaceholderInput)};
display: flex;
align-items: center;
font-family: ${theme.orbit.fontFamily};
font-size: ${theme.orbit.fontSizeInputNormal};
z-index: 3;
Expand Down

0 comments on commit 92c3db8

Please sign in to comment.