Skip to content

Commit

Permalink
chore(text-area): adds message to improve context when character limi…
Browse files Browse the repository at this point in the history
…t exceeds. (#7021)

**Related Issue:** #6630

## Summary

This PR will add message string in `calcite-text-area` to improve
context of error message when character limit exceeds.
  • Loading branch information
anveshmekala authored May 25, 2023
1 parent ad25cbe commit 5c5149d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/text-area/assets/text-area/t9n/messages.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"invalid": "Invalid",
"tooLong": "Character limit exceeded"
"tooLong": "Character limit exceeded",
"longText": "The current character length is ${currentLength}, which exceeds the maximum character length of ${maxLength}."
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"invalid": "Invalid",
"tooLong": "Character limit exceeded"
"tooLong": "Character limit exceeded",
"longText": "The current character length is ${currentLength}, which exceeds the maximum character length of ${maxLength}."
}

0 comments on commit 5c5149d

Please sign in to comment.