Skip to content

🎨 Palette: Improve Personal Rating UX and accessibility#60

Open
Gamepulse wants to merge 1 commit into
Devfrom
palette-rating-ux-a11y-25789869176598812
Open

🎨 Palette: Improve Personal Rating UX and accessibility#60
Gamepulse wants to merge 1 commit into
Devfrom
palette-rating-ux-a11y-25789869176598812

Conversation

@Gamepulse

Copy link
Copy Markdown
Owner

This PR introduces several micro-UX and accessibility improvements to the Personal Rating section in the Game Detail view:

  1. Clear Rating Functionality: Since native HTML range inputs cannot represent a null state, users were previously unable to "unset" a rating once selected. I've added a "Clear Rating" button (✕ Effacer la note / Clear Rating) that appears when a rating is set, allowing users to reset it.
  2. Accessibility (a11y) Improvements:
    • Properly associated the range input with its label using a unique ID (rating-range-${game.id}).
    • Marked the visual bounds indicators ('0' and '100') as aria-hidden="true" to prevent redundant announcements by screen readers.
    • Added cursor-pointer to the label for a better hit area.
  3. Internationalization: Added support for the new "Clear Rating" string in both English and French.
  4. Build Fix: Resolved a blocking TypeScript error in GameScreenshotsCarousel.tsx where the hasIgdbId state was declared but never used.

Verified visually with Playwright screenshots and passed pnpm build and pnpm test.


PR created automatically by Jules for task 25789869176598812 started by @Gamepulse

- Add "Clear Rating" button to allow unsetting game ratings
- Associate rating range input with its label via unique ID
- Add aria-hidden="true" to visual range bounds
- Fix pre-existing build error (unused variable) in GameScreenshotsCarousel.tsx
- Add translations for 'clearRating' in English and French

Co-authored-by: Gamepulse <8333979+Gamepulse@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

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.

1 participant