Skip to content

🎨 Palette: Keyboard accessibility and safety improvements#21

Open
Gamepulse wants to merge 1 commit into
Devfrom
palette-ux-accessibility-improvements-12698961435335710957
Open

🎨 Palette: Keyboard accessibility and safety improvements#21
Gamepulse wants to merge 1 commit into
Devfrom
palette-ux-accessibility-improvements-12698961435335710957

Conversation

@Gamepulse
Copy link
Copy Markdown
Owner

Implemented a series of micro-UX improvements focused on accessibility and safety:

  1. Keyboard Accessibility: Game cards are now focusable and can be activated with Enter or Space. Nested tags and badges are also keyboard-accessible.
  2. ARIA Compliance: Added meaningful labels to toolbar buttons and platform icons.
  3. Data Safety: Users must now confirm before deleting a game from the library.
  4. General Polish: Removed debug logs and fixed a build-blocking TypeScript error.
  5. Internationalization: Added and used new translation keys for toolbar controls.

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

- Added keyboard navigation (Enter/Space) to GameCard components in all view modes.
- Implemented focus-visible indicators for interactive elements.
- Added ARIA labels and roles to icon-only buttons and decorative emojis.
- Implemented event propagation blocking to ensure nested interactions don't trigger parent actions.
- Added a confirmation dialog for game deletion in GameDetail.
- Fixed a TypeScript linting error in GameScreenshotsCarousel.
- Added missing i18n keys for view modes and sort order.
- Cleaned up debug logs and unused state.

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.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8c0b13d576

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 213 to +216
<div
className="theme-card theme-border border rounded-lg overflow-hidden cursor-pointer transition-all duration-300 hover:scale-105 hover:shadow-xl hover:border-gray-600"
className="theme-card theme-border border rounded-lg overflow-hidden cursor-pointer transition-all duration-300 hover:scale-105 hover:shadow-xl hover:border-gray-600 focus-visible:ring-2 focus-visible:ring-indigo-500 outline-none"
tabIndex={0}
onKeyDown={handleKeyDown}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Give focusable game cards button semantics

The card containers are now keyboard-focusable and activate on Enter/Space, but they are still plain <div> elements without an interactive role or name. In screen readers this is typically announced as generic content, so users can tab to it without being told it is actionable, making the new keyboard navigation difficult to discover across grid/list/compact cards. Use a semantic <button> (preferred) or add role="button" plus an accessible name.

Useful? React with 👍 / 👎.

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