Skip to content

Commit

Permalink
Update warning
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerJDev committed Aug 29, 2024
1 parent 3cbd244 commit 993204c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/ProgressBar/ProgressBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const Item = forwardRef<HTMLSpanElement, ProgressBarItems>(
}

warning(
!ariaAttributes['aria-valuenow'] &&
ariaAttributes['aria-valuenow'] === undefined &&
typeof (rest as React.AriaAttributes)['aria-valuenow'] === 'undefined' &&
typeof (rest as React.AriaAttributes)['aria-valuetext'] === 'undefined',
'Expected `aria-valuenow` or `aria-valuetext` to be provided to <ProgressBar>. Provide one of these values so screen reader users can determine the current progress. This warning will become an error in the next major release.',
Expand Down

0 comments on commit 993204c

Please sign in to comment.