Skip to content

Commit

Permalink
fix(HorizontalScroll): arrows now only display if it's overflowing (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
DSil committed Jun 15, 2023
1 parent 27c0c31 commit 115fce2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/orbit-components/src/HorizontalScroll/index.tsx
Expand Up @@ -242,15 +242,15 @@ const HorizontalScroll = React.forwardRef<HTMLDivElement, Props>(
<StyledButton
tabIndex={0}
type="button"
isHidden={reachedStart}
isHidden={reachedStart || !isOverflowing}
onClick={() => handleClick("left")}
>
<ChevronBackward customColor={arrowColor} />
</StyledButton>
<StyledButton
tabIndex={0}
type="button"
isHidden={reachedEnd}
isHidden={reachedEnd || !isOverflowing}
onClick={() => handleClick("right")}
>
<ChevronForward customColor={arrowColor} />
Expand Down

0 comments on commit 115fce2

Please sign in to comment.