Skip to content

fix: mobile touch events on cpdocs.js page - #199

Merged
alexdll31 merged 2 commits into
devfrom
fix/mobile-touch-events
Aug 6, 2026
Merged

fix: mobile touch events on cpdocs.js page#199
alexdll31 merged 2 commits into
devfrom
fix/mobile-touch-events

Conversation

@alexdll31

@alexdll31 alexdll31 commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Burger menu hidden on mobile: MUI TableContainer relies on Emotion CSS for overflow-x: auto. Since Docusaurus pre-renders without MUI's Emotion SSR setup, the CSS isn't in the initial HTML. The 9-column SDK table renders at full content width (~800-1000px), widening the body beyond the viewport. Docusaurus sets overflow-x: hidden on the body, so the navbar stretches to match and the burger button is clipped off the right edge of the screen — invisible and inaccessible. Fixed by adding style={{ overflowX: 'auto', width: '100%' }} inline (not Emotion-dependent) on both TableContainer components.

  • Pills unresponsive on iOS Safari: iOS Safari does not fire click events on non-interactive elements (li, div, span) unless cursor: pointer is applied directly to the element. The InfoTabs pills are

  • elements with no such CSS. Fixed by adding cursor: pointer; touch-action: manipulation to .pills__item in custom.css.

Files changed

  • src/pages/cpdocs.js — overflowX: auto on both MUI TableContainer elements
  • src/css/custom.css — .pills__item { cursor: pointer; touch-action: manipulation }

Test plan

  • Open developer.handpoint.io/com on a phone (iOS Safari and Android Chrome)
  • Tap the burger menu icon — sidebar should open
  • Tap Integration Paths, Standalone Options, and other pills — page should scroll to the section

- Add overflowX: auto to TableContainer components so wide MUI tables
  don't push the body wider than the viewport, which was hiding the navbar
  burger button off-screen on mobile
- Add cursor: pointer + touch-action: manipulation to .pills__item so iOS
  Safari fires click events on the li elements in InfoTabs
@alexdll31
alexdll31 merged commit d3632db into dev Aug 6, 2026
2 checks passed
@alexdll31
alexdll31 deleted the fix/mobile-touch-events branch August 6, 2026 11:40
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.

2 participants