fixing large text in selected dropdown not visible (#2630)

* fixing large text in selected dropdown not visible

* bugfix
This commit is contained in:
Kiran Ashok 2022-03-25 15:40:33 +05:30 committed by GitHub
parent 05edf4bcf0
commit 3f9c718fda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -108,6 +108,8 @@ export const DropDown = function DropDown({
':hover': {
backgroundColor: state.value === currentValue ? '#1F2E64' : '#323C4B',
},
maxWidth: 'auto',
minWidth: 'max-content',
}
: {
backgroundColor: state.value === currentValue ? '#7A95FB' : 'white',
@ -115,6 +117,8 @@ export const DropDown = function DropDown({
':hover': {
backgroundColor: state.value === currentValue ? '#3650AF' : '#d8dce9',
},
maxWidth: 'auto',
minWidth: 'max-content',
};
return {
...provided,