Skip to content

Commit

Permalink
Make increment and decrement buttons keyboard accessible.
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia committed Dec 27, 2023
1 parent cd6e8b8 commit abff455
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/components/src/number-control/index.tsx
Expand Up @@ -247,9 +247,7 @@ function UnforwardedNumberControl(
className={ spinButtonClasses }
icon={ plusIcon }
size="small"
aria-hidden="true"
aria-label={ __( 'Increment' ) }
tabIndex={ -1 }
label={ __( 'Increment' ) }
onClick={ buildSpinButtonClickHandler(
'up'
) }
Expand All @@ -258,9 +256,7 @@ function UnforwardedNumberControl(
className={ spinButtonClasses }
icon={ resetIcon }
size="small"
aria-hidden="true"
aria-label={ __( 'Decrement' ) }
tabIndex={ -1 }
label={ __( 'Decrement' ) }
onClick={ buildSpinButtonClickHandler(
'down'
) }
Expand Down

0 comments on commit abff455

Please sign in to comment.