Skip to content

Commit

Permalink
test: remove slide control disabled attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristiaanScheermeijer committed Apr 8, 2024
1 parent c81f2ee commit bddfdb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions packages/ui-react/src/components/Shelf/Shelf.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,17 @@ const Shelf = ({
);

const renderRightControl: RenderControl = useCallback(
({ onClick, disabled }) => (
<button className={styles.chevron} disabled={disabled} aria-label={t('slide_next')} onClick={onClick}>
({ onClick }) => (
<button className={styles.chevron} aria-label={t('slide_next')} onClick={onClick}>
<Icon icon={ChevronRight} />
</button>
),
[t],
);

const renderLeftControl: RenderControl = useCallback(
({ onClick, disabled }) => (
<button className={styles.chevron} aria-label={t('slide_previous')} disabled={disabled} onClick={onClick}>
({ onClick }) => (
<button className={styles.chevron} aria-label={t('slide_previous')} onClick={onClick}>
<Icon icon={ChevronLeft} />
</button>
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ exports[`Shelf Component tests > Featured shelf 1`] = `
<button
aria-label="slide_previous"
class="_chevron_81910b"
disabled=""
>
<svg
aria-hidden="true"
Expand Down

0 comments on commit bddfdb3

Please sign in to comment.