-
Notifications
You must be signed in to change notification settings - Fork 45
Implement character limit feature for inputs #7707
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
9efd8af
Fix sample file name
sdvg 04d949f
Introduce new prop _character-limit for kol-textarea
sdvg f2b4d03
Replace _has-counter with `_character-limit` for textarea and adjust …
sdvg 263ded1
Refactor and add classname when limit exceeded
sdvg 262a7fb
Add styling for limit exceeded in themes
sdvg 16199c8
Textarea: Add debounced character counter for screen readers
sdvg a7ed804
Add character limit hint
sdvg 826d56a
Make screen reader hint visually hidden
sdvg 6f75415
Remove has-counter property from textarea
sdvg 0db0e4b
Move method to controller
sdvg 64ebfb7
Implement character-limit for kol-input-email
sdvg 799913b
Implement character-limit for kol-input-password and kol-input-text
sdvg 57093a9
Remove unused type files
sdvg 5e50f2e
Update sample
sdvg 197dcd0
Fix ariaDescribedBy attribute for inputs
sdvg 21a9c35
Update all snapshots$
sdvg 85761dd
Merge branch 'develop' of github.com:public-ui/kolibri into 7162-rewo…
sdvg 48738b1
Update all snapshots$
sdvg 1bf882d
Fix initial aria-live value not set and remove redundant state updates
sdvg c62f03d
Add character limit E2E tests
sdvg 0f6ddde
Merge branch 'develop' into 7162-rework-counter-v3
sdvg b213151
Add Breaking Changes
sdvg 9c4fa99
Merge branch 'develop' of github.com:public-ui/kolibri into 7162-rewo…
sdvg 5e90d49
Merge branch 'develop' of github.com:public-ui/kolibri into 7162-rewo…
sdvg 7aaaa30
Change API for character counter to MaxLengthBehaviorPropType
sdvg 46bd326
Set default value
sdvg ac1ee89
Update all snapshots$
sdvg f7bb502
Fix prop in sample
sdvg af279c1
Update breaking changes
sdvg d13af79
Merge branch 'develop' of github.com:public-ui/kolibri into 7162-rewo…
sdvg a8d02a6
Merge branch '7162-rework-counter-v3' of github.com:public-ui/kolibri…
sdvg a60cf3f
Merge branch 'develop' of github.com:public-ui/kolibri into 7162-rewo…
sdvg a91592b
Merge branch 'develop' of https://github.com/public-ui/kolibri into 7…
deleonio 4d3dd57
Update all snapshots$
deleonio 79c46f9
Merge branch 'develop' of github.com:public-ui/kolibri into 7162-rewo…
sdvg e9d6804
Merge branch 'develop' of github.com:public-ui/kolibri into 7162-rewo…
sdvg 3609c00
Add test cases
sdvg e15cf5d
Fix test definition
sdvg 48258e5
Bring back prop _has-counter
sdvg fd6aaca
Implement alternative _has-counter behavior
sdvg d0d2a53
Update all snapshots$
sdvg 4a7621a
Add tests for FormFieldCharacterLimitHint
sdvg 4a76255
Merge remote-tracking branch 'origin/7162-rework-counter-v3' into 716…
sdvg 427edd0
Fix counter not updating for empty strings
sdvg 3a21425
Merge branch 'develop' into 7162-rework-counter-v3
sdvg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider using a lightweight debounce implementation instead of importing the entire lodash-es library to reduce bundle size. A simple setTimeout-based debounce function would be sufficient for this use case.