Skip to content

Commit

Permalink
s-r announces quantity after every add
Browse files Browse the repository at this point in the history
  • Loading branch information
theericzhang committed Jan 30, 2023
1 parent ecc8d59 commit 57ca18d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions components/StoreComponents/InputStepper/InputStepper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ export default function InputStepper({ itemID }: TInputStepper) {

return (
<InputStepperWrapper
aria-live="polite"
aria-atomic="true"
aria-relevant="removals additions"
>
<InputStepperButton
Expand All @@ -99,7 +97,11 @@ export default function InputStepper({ itemID }: TInputStepper) {
<Minus />}
</InputStepperButton>
<InputStepperLabelWrapper>
<InputStepperLabel aria-label={`Quantity: ${quantityCart}`}>
<InputStepperLabel
aria-label="Quantity: "
aria-live="polite"
aria-atomic="true"
>
{quantityCart}
{' '}
×
Expand Down

0 comments on commit 57ca18d

Please sign in to comment.