[Fixes #1520] Too short visible list for Schema compatibility level selector (#1524)

* Updates Select styles to always show scrollbar on webkit

Co-authored-by: Damir Abdulganiev <dabdulganiev@provectus.com>
This commit is contained in:
Damir Abdulganiev 2022-02-01 16:35:42 +03:00 committed by GitHub
parent 42a004af1c
commit 4390923e48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 0 deletions

View file

@ -335,6 +335,11 @@ exports[`Connectors ListItem matches snapshot 1`] = `
"hover": "#171A1C",
"normal": "#171A1C",
},
"optionList": Object {
"scrollbar": Object {
"backgroundColor": "#ABB5BA",
},
},
},
"switch": Object {
"checked": "#29A352",

View file

@ -342,6 +342,11 @@ exports[`Details when it has readonly flag does not render the Action button a T
"hover": "#171A1C",
"normal": "#171A1C",
},
"optionList": Object {
"scrollbar": Object {
"backgroundColor": "#ABB5BA",
},
},
},
"switch": Object {
"checked": "#29A352",

View file

@ -70,6 +70,17 @@ export const OptionList = styled.ul`
color: ${(props) => props.theme.select.color.normal};
overflow-y: scroll;
z-index: 10;
&::-webkit-scrollbar {
-webkit-appearance: none;
width: 7px;
}
&::-webkit-scrollbar-thumb {
border-radius: 4px;
background-color: ${(props) =>
props.theme.select.optionList.scrollbar.backgroundColor};
}
`;
export const Option = styled.li<OptionProps>`

View file

@ -240,6 +240,11 @@ const theme = {
active: Colors.neutral[70],
disabled: Colors.neutral[10],
},
optionList: {
scrollbar: {
backgroundColor: Colors.neutral[30],
},
},
},
input: {
borderColor: {