-
Notifications
You must be signed in to change notification settings - Fork 95
feat(CharacterCount): Add new component CharacterCount #383
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
Conversation
Is this testing what you had in mind? it('supports inputRef', () => {
const tRef = React.createRef<HTMLTextAreaElement>()
const { queryByTestId } = render(
<CharacterCount
id="character-count"
name="character-count"
maxLength={10}
isTextArea
inputRef={tRef}
/>
)
expect(queryByTestId('textarea')).toBe(tRef.current)
}) |
@ahobson Yes, something like that. Was using |
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.
👍
Summary
Add
CharacterCount
based on uwds spec . See also discussion in #169Related Issues or PRs
closes #169
How To Test
Check Forms/ Character Count in Storybook