Fix floating buttons covering content on mobile/tablet#23373
Conversation
The "Rate This Page" and "Ask AI" floating buttons were overlapping and hiding page content on mobile and tablet viewports. This fix: - Hides the floating "Rate This Page" button on viewports < 992px and moves it into the Docs Menu sidebar as a full-width button that closes the sidebar and opens the feedback overlay full-width from the bottom - Shrinks the Kapa "Ask AI" floating button to a 36x36px icon-only button on mobile/tablet so it no longer covers content - Bumps Kapa modal z-index to 9999 to ensure it renders above all page elements on mobile Resolves: EDUENG-104 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
✅ Deploy Preview for cockroachdb-api-docs canceled.
|
✅ Deploy Preview for cockroachdb-interactivetutorials-docs canceled.
|
Files changed:
|
✅ Netlify Preview
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Netlify Preview
To edit notification comments on pull requests, go to your Netlify project configuration. |
Review of PR #23373: Fix floating buttons covering content on mobile/tablet3 files changed, +73 / -1. Issues1. Duplicated overlay positioning — two sources of truthThe CSS media query in Suggestion: Remove the redundant inline style assignments from the JS and rely on the CSS media query. The JS should only need to set 2. Magic timeout of 400ms (
|
1. Remove duplicated overlay positioning — JS click handler now only sets display:block; all positioning handled by CSS media query 2. Replace magic 400ms setTimeout with Bootstrap hidden.bs.collapse event listener for reliable sidebar-to-overlay transition 3. Fix z-index escalation — Kapa modal set to 1060 (just above Bootstrap modal default of 1050), feedback overlay to 1070, fitting into the existing site z-index scale 4. Consistent jQuery usage — click handler uses jQuery throughout since Bootstrap collapse API requires it 5. Add comment explaining why !important is needed on Kapa button overrides (third-party inline styles); remove unnecessary bottom/right position overrides 6. Add border-radius: 12px 12px 0 0 to feedback window on mobile for proper bottom-sheet appearance Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
Related issue
EDUENG-104
Files changed
src/current/_includes/feedback-widget.htmlsrc/current/_includes/head.htmlsrc/current/_layouts/default.htmlTest plan
🤖 Generated with Claude Code