Merge pull request #13605 from strapi/ML-folder/ReactSelect-option-style

[ML Folder] React Select style fix
This commit is contained in:
Gustav Hansen 2022-06-21 12:35:44 +02:00 committed by GitHub
commit 985b739b9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,7 +79,15 @@ const getSelectStyles = (theme, error) => {
backgroundColor = theme.colors.primary100;
}
return { ...base, lineHeight: theme.spaces[5], backgroundColor, borderRadius: 4 };
return {
...base,
lineHeight: theme.spaces[5],
backgroundColor,
borderRadius: theme.borderRadius,
'&:active': {
backgroundColor: theme.colors.primary100,
},
};
},
placeholder: base => ({ ...base, marginLeft: 0 }),
singleValue: base => ({ ...base, marginLeft: 0, color: theme.colors.neutral800 }),