Skip to content

Conversation

britt6612
Copy link
Collaborator

@britt6612 britt6612 commented Nov 26, 2024

What does this PR do?

This PR adds an announcement so the screen reader will read out the error on the validation for the max character count

Where should the reviewer start?

formfield.js

What testing has been done on this PR?

screen reader locally

How should this be manually tested?

Do Jest tests follow these best practices?

  • screen is used for querying.
  • The correct query is used. (Refer to this list of queries)
  • asFragment() is used for snapshot testing.

Any background context you want to provide?

Announce the max character allowed before the user begins typing.
Announce when the user has typed beyond the threshold of the max allowed.

What are the relevant issues?

grommet/hpe-design-system#3787

Screenshots (if appropriate)

Do the grommet docs need to be updated?

no

Should this PR be mentioned in the release notes?

yes

Is this change backwards compatible or is it a breaking change?

backwards compatible

@britt6612 britt6612 marked this pull request as draft November 26, 2024 18:31
@jcfilben jcfilben marked this pull request as ready for review November 26, 2024 23:32
@taysea taysea self-requested a review November 27, 2024 18:45
Copy link
Collaborator

@taysea taysea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jcfilben jcfilben merged commit 8f34d17 into grommet:master Nov 27, 2024
12 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants