Skip to content

fix: correct keyboard CSS selectors and increase key size for kiosk#185

Merged
thewrz merged 1 commit intomainfrom
fix/keyboard-size-and-theme
Feb 23, 2026
Merged

fix: correct keyboard CSS selectors and increase key size for kiosk#185
thewrz merged 1 commit intomainfrom
fix/keyboard-size-and-theme

Conversation

@thewrz
Copy link
Owner

@thewrz thewrz commented Feb 23, 2026

Summary

  • Fix CSS selectors: .simple-keyboard.kiosk-keyboard so dark theme overrides actually apply
  • Increase key height: 48px → 58px for better kiosk touchscreen usability
  • Increase font size: 1.125rem → 1.35rem proportionally
  • Increase row gap: 6px → 8px

Root cause

simple-keyboard only adds .simple-keyboard class when instantiated with a CSS selector string. When passed a DOM element (our approach via React ref), the container keeps its existing classes (kiosk-keyboard) plus gets hg-theme-default from the theme option. Our overrides targeted .simple-keyboard and matched nothing, so the default light theme showed through.

Test plan

  • 14/14 RequestModal tests pass
  • TypeScript clean
  • Verify on kiosk: dark keys with white text, larger touch targets

🤖 Generated with Claude Code

CSS overrides were targeting .simple-keyboard but the class doesn't
exist when simple-keyboard is instantiated with a DOM element ref.
Changed selectors to .kiosk-keyboard (our actual container class).
Also increased key height (48→58px) and font size for kiosk touch.
@thewrz thewrz merged commit baf1753 into main Feb 23, 2026
8 checks passed
@thewrz thewrz deleted the fix/keyboard-size-and-theme branch February 23, 2026 23:54
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