🎨 Palette: Add keyboard shortcut discoverability - #268
Conversation
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>
|
👋 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 New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
💡 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:
♿ 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.njkutilizes 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