Skip to content

Commit

Permalink
Update aria-label for OTP input field
Browse files Browse the repository at this point in the history
  • Loading branch information
sai6855 committed Jan 16, 2024
1 parent 51965ca commit d67da7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/data/base/components/input/OTPInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function OTP({ seperator, inputCount, otp, setOtp }) {
slots={{
input: InputElement,
}}
aria-label="OTP input field"
aria-label={`Digit ${index + 1} of OTP`}
slotProps={{
input: {
ref: (ele) => {
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/input/OTPInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function OTP({
slots={{
input: InputElement,
}}
aria-label="OTP input field"
aria-label={`Digit ${index + 1} of OTP`}
slotProps={{
input: {
ref: (ele) => {
Expand Down

0 comments on commit d67da7c

Please sign in to comment.