* Updates Select styles to always show scrollbar on webkit Co-authored-by: Damir Abdulganiev <dabdulganiev@provectus.com>
This commit is contained in:
parent
42a004af1c
commit
4390923e48
4 changed files with 26 additions and 0 deletions
|
@ -335,6 +335,11 @@ exports[`Connectors ListItem matches snapshot 1`] = `
|
|||
"hover": "#171A1C",
|
||||
"normal": "#171A1C",
|
||||
},
|
||||
"optionList": Object {
|
||||
"scrollbar": Object {
|
||||
"backgroundColor": "#ABB5BA",
|
||||
},
|
||||
},
|
||||
},
|
||||
"switch": Object {
|
||||
"checked": "#29A352",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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>`
|
||||
|
|
|
@ -240,6 +240,11 @@ const theme = {
|
|||
active: Colors.neutral[70],
|
||||
disabled: Colors.neutral[10],
|
||||
},
|
||||
optionList: {
|
||||
scrollbar: {
|
||||
backgroundColor: Colors.neutral[30],
|
||||
},
|
||||
},
|
||||
},
|
||||
input: {
|
||||
borderColor: {
|
||||
|
|
Loading…
Add table
Reference in a new issue