Skip to content

🎨 Palette: Add keyboard shortcut discoverability - #268

Open
EiJackGH wants to merge 1 commit into
mainfrom
palette/highlight-shortcuts-4720228069308781581
Open

🎨 Palette: Add keyboard shortcut discoverability#268
EiJackGH wants to merge 1 commit into
mainfrom
palette/highlight-shortcuts-4720228069308781581

Conversation

@EiJackGH

Copy link
Copy Markdown
Owner

💡 What: Wrapped the keyboard shortcuts ("Space" and "↑") in semantic <kbd> tags and applied physical key CSS styling (with contrast-enhancing text-shadows) to the internal <style> block. Also added a journal entry documenting this learning in .Jules/palette.md.

🎯 Why: Custom game controls require explicit discoverability. Highlighting them visually reduces cognitive load and ensures they stand out clearly against the dynamic #5c94fc background, making the UI more intuitive.

📸 Before/After:

  • Before: "Press Space or ↑ to jump!" (plain white text).
  • After: Keys are beautifully styled with borders and shadows resembling physical keys, drawing the user's attention.

Accessibility: Utilizing semantic HTML tags <kbd> signals to assistive technologies that these are distinct keyboard inputs. The applied text-shadow ensures they remain high-contrast regardless of the background rendering behind them.

Note: As mario-game.njk utilizes an internal <style> block instead of an external design system framework or utility classes, standard CSS was appended there directly in keeping with the file's existing structure.


PR created automatically by Jules for task 4720228069308781581 started by @EiJackGH

Wrapped the "Space" and "↑" instructions in `mario-game.njk` with semantic `<kbd>` tags and applied standard physical key CSS styling to improve visibility and discoverability for the user. Appended the learning to `.Jules/palette.md`.

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

Copy link
Copy Markdown
Contributor

👋 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.

@EiJackGH
EiJackGH deployed to production August 13, 2026 13:40 — with GitHub Actions Active
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