fix: mobile touch events on cpdocs.js page - #199
Merged
Conversation
- 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
pgancas
approved these changes
Aug 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Files changed
Test plan