Skip to content

Fix Star rating and thumb rating focus resolved by keyboard navigation #7466

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 4 commits into from
Jan 15, 2025

Conversation

umeshiscreative
Copy link
Contributor

@umeshiscreative umeshiscreative commented Jan 10, 2025

What does this PR do?

Fix Star rating and thumb rating focus resolved by keyboard navigation

Where should the reviewer start?

components/ThumbStarRating.js
components/StarRating.js

What testing has been done on this PR?

Updated Snapshot for this fix

How should this be manually tested?

Tested in Chromium based browser with storybook

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?

Wrapping the StarRating and thumb rating component with StyledThumbratingBox

What are the relevant issues?

#7452 #7453

Screenshots (if appropriate)

grommet1

Do the grommet docs need to be updated?

No

Should this PR be mentioned in the release notes?

No

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

Not Sure

@@ -3,11 +3,14 @@ import { Star } from 'grommet-icons/icons/Star';
import { StarOutline } from 'grommet-icons/icons/StarOutline';
import { FormContext } from '../Form/FormContext';
import { RadioButtonGroup } from '../RadioButtonGroup';
import { StyledThumbsRatingBox } from '../ThumbsRating/ThumbsRating';
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we also make StarRating its own box instead of importing StyledThumbsRatingBox
maybe StyledStarRatingBox that way incase we have styles that are specific to either component they are mutually exclusive.

@britt6612
Copy link
Collaborator

@umeshiscreative
almost there just 2 small comments thank you!

@britt6612 britt6612 self-requested a review January 15, 2025 14:49
@britt6612
Copy link
Collaborator

@umeshiscreative code looks good trying to see why the there was a snap shot change though

Copy link
Collaborator

@britt6612 britt6612 left a comment

Choose a reason for hiding this comment

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

Looks good thank you for your contributions.

@britt6612 britt6612 requested a review from jcfilben January 15, 2025 17:34
Copy link
Collaborator

@jcfilben jcfilben left a comment

Choose a reason for hiding this comment

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

Looks good!

@jcfilben jcfilben merged commit ef52f5f into grommet:master Jan 15, 2025
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.

3 participants