Skip to content

🎨 Palette: UX and Accessibility enhancements for Game Detail Header#39

Open
Gamepulse wants to merge 1 commit into
Devfrom
palette/ux-enhancements-gdh-6264644426523944563
Open

🎨 Palette: UX and Accessibility enhancements for Game Detail Header#39
Gamepulse wants to merge 1 commit into
Devfrom
palette/ux-enhancements-gdh-6264644426523944563

Conversation

@Gamepulse
Copy link
Copy Markdown
Owner

I've implemented a set of micro-UX improvements in the GameDetailHeader component to enhance accessibility and usability.

Key changes include:

  • Personal Rating: Added a "Clear Rating" button (with English and French translations) to allow users to unset ratings. The range input is now correctly associated with its label using ARIA attributes.
  • Accessibility:
    • Converted the folder path to a semantic <button> so it's keyboard-accessible.
    • Added aria-label to the favorite star button.
    • Marked decorative emojis and icons as aria-hidden to avoid screen reader clutter.
  • Bug Fixes: Fixed a translation typo ('Plateformes' used in English) and removed an unused variable in GameScreenshotsCarousel.tsx that was causing build failures.

All changes have been verified with a production build (pnpm build), unit tests (pnpm test), and visual inspection via Playwright.


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

…Header

This commit introduces several micro-UX and accessibility improvements to the `GameDetailHeader` component:

1.  **Clear Rating Feature**: Added a "Clear Rating" button next to the personal rating slider, allowing users to unset their rating.
2.  **Semantic Elements**: Converted the folder path from a non-semantic `<p>` tag to a proper `<button type="button">` for keyboard accessibility and native interaction.
3.  **ARIA and Screen Reader Support**:
    - Added `aria-label` and `title` to icon-only buttons (Favorite toggle, Clear Rating).
    - Wrapped decorative icons and emojis in `<span aria-hidden="true">` to ensure clean screen reader output.
    - Associated the personal rating slider with its label using `id` and `htmlFor`.
4.  **Internationalization**: Added `clearRating` translation keys for English and French, and fixed a typo in the English `platforms` translation.
5.  **Cleanup**: Removed an unused `hasIgdbId` state in `GameScreenshotsCarousel.tsx` to fix a build error.

These changes improve the overall accessibility and intuitiveness of the game details interface.

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