🎨 Palette: Add <kbd> tags for keyboard shortcuts - #276
Conversation
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 instructions ("Space" and "↑") in semantic
<kbd>tags and added corresponding CSS to style them like physical keyboard keys.🎯 Why
Improves intuitiveness and discoverability for the user. When users see visually styled keys, they immediately recognize them as keyboard controls, which reduces cognitive load compared to parsing plain text instructions.
📸 Before/After
Before: Plain text instruction (
Press Space or ↑ to jump!)After: Visually distinct, physical-looking keys for
<kbd>Space</kbd>and<kbd>↑</kbd>.♿ Accessibility
Using semantic
<kbd>tags ensures that browsers and assistive technologies correctly interpret these strings as user keyboard inputs.Note: Custom CSS was added directly to the existing internal
<style>block to match the file's existing architectural pattern without introducing external UI dependencies.PR created automatically by Jules for task 14031459458918913234 started by @EiJackGH