Skip to content

Commit 910e960

Browse files
authored
tweak(styles): dropdown select placeholder alignment
Co-authored-by: ux-git <ux-git@users.noreply.github.com>
1 parent 03bd349 commit 910e960

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/components/select/index.styles.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ export const SelectStyled = styled(Select)({
77
},
88
'.MuiSelect-select': {
99
color: 'var(--black)',
10-
alignContent: 'center',
10+
display: 'flex',
11+
alignItems: 'center',
1112
height: '44px !important',
1213
paddingTop: '0px !important',
1314
paddingBottom: '0px !important',

src/components/select/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ const Select = ({ helperText, ...props }: SelectPropsType) => {
2121
sx={{
2222
color: props.error ? 'var(--red-main)' : 'var(--accent-350)',
2323
'&.Mui-focused': { color: 'var(--accent-main)' },
24-
'&[data-shrink=false]': { top: props.value === '' ? '-6px' : '-8px' },
25-
marginTop: '2px',
24+
'&[data-shrink=false]': {
25+
transform: 'translate(14px, 12px) scale(1)',
26+
},
2627
'&.Mui-disabled': { color: 'var(--accent-200)' },
2728
}}
2829
>

0 commit comments

Comments
 (0)