feat(slice scrollbar): Integrate ViewportSliceProgressScrollbar with customizations and docs (#5960)

Co-authored-by: Dan Rukas <dan.rukas@gmail.com>
This commit is contained in:
Joe BoccanfusoandDan Rukas authored and GitHub committed 2026-04-23 08:46:03 -04:00
1 parent 8a2fee4d8a
commit 8fc0dc16e9
46 files changed
+1730 -279

No files matched your search

@@ -27,7 +27,7 @@ const locationClasses = {
),
[ViewportActionCornersLocations.topRight]: classNames(
commonClasses,
'absolute top-[4px] right-[16px] right-viewport-scrollbar'
'absolute top-[4px] right-viewport-scrollbar'
),
[ViewportActionCornersLocations.bottomLeft]: classNames(
commonClasses,
@@ -35,7 +35,7 @@ const locationClasses = {
),
[ViewportActionCornersLocations.bottomRight]: classNames(
commonClasses,
'absolute bottom-[3px] right-[16px] right-viewport-scrollbar'
'absolute bottom-[3px] right-viewport-scrollbar'
),
[ViewportActionCornersLocations.topMiddle]: classNames(
commonClasses,
@@ -52,7 +52,7 @@ const locationClasses = {
),
[ViewportActionCornersLocations.rightMiddle]: classNames(
commonClasses,
'absolute right-[16px] top-1/2 -translate-y-1/2 right-viewport-scrollbar'
'absolute top-1/2 -translate-y-1/2 right-viewport-scrollbar'
),
};
@@ -31,14 +31,12 @@ function ViewportOverlay({ topLeft, topRight, bottomRight, bottomLeft, color = '
<div
data-cy="viewport-overlay-top-right"
className={classNames(overlay, classes.topRight)}
style={{ transform: 'translateX(9px)' }}
>
{topRight}
</div>
<div
data-cy="viewport-overlay-bottom-right"
className={classNames(overlay, classes.bottomRight)}
style={{ transform: 'translateX(6px)' }}
>
{bottomRight}
</div>