🎨 Palette: Add <kbd> styles for keyboard instructions - #271
Conversation
Wrapped 'Space' and '↑' in semantic `<kbd>` tags and added corresponding CSS styles to the existing `<style>` block to make the keyboard instructions look like physical keys, improving their discoverability. 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 'Space' and '↑' text in the game instructions with semantic
<kbd>tags and added styling to make them look like physical keys.🎯 Why: To make the custom keyboard controls more intuitive and explicitly clear to users by distinguishing them visually from regular text.
📸 Before/After: The instruction previously read as plain text: "Press Space or ↑ to jump!". It now shows stylized keycap buttons for the inputs.
♿ Accessibility: Improved semantic meaning for screen readers and assistive tech by explicitly denoting keyboard input using the native HTML
<kbd>tag. Added the styles to the existing internal<style>block to match the project's current styling approach without adding heavy new UI dependencies.PR created automatically by Jules for task 15971047846561862910 started by @EiJackGH