Skip to content

Commit

Permalink
feat: base component scrollbar (deriv-com#11737)
Browse files Browse the repository at this point in the history
  • Loading branch information
lubega-deriv authored Nov 24, 2023
1 parent 8e90941 commit 9099e82
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
11 changes: 11 additions & 0 deletions packages/wallets/src/AppContent.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,14 @@
position: absolute;
z-index: 1;
}

::-webkit-scrollbar {
width: 1.2rem;
height: 1.2rem;

&-thumb {
border: 0.4rem solid #fff;
border-radius: 4rem;
background: var(--state-active, #d6dadb);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const WalletButton: React.FC<WalletButtonProps> = ({
} as const;

return (
<button className={buttonClassNames} disabled={disabled} onClick={onClick} type={type}>
<button className={buttonClassNames} disabled={disabled || isLoading} onClick={onClick} type={type}>
{isLoading && (
<div className='wallets-button__loader'>
<Loader color={isContained ? loaderColorMapper[color] : '#85ACB0'} isFullScreen={false} />
Expand Down
4 changes: 0 additions & 4 deletions packages/wallets/src/features/cashier/WalletCashier.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,4 @@
@include mobile {
padding: 2.4rem 1.6rem;
}

&::-webkit-scrollbar {
display: none;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
overflow: auto;
}

&::-webkit-scrollbar {
display: none;
}

&__row {
width: 100%;
display: flex;
Expand Down

0 comments on commit 9099e82

Please sign in to comment.