Skip to content

fix(Sheet): make close button clickable on iOS#1549

Merged
Marcosld merged 2 commits into
masterfrom
fix-ios-close-button
May 20, 2026
Merged

fix(Sheet): make close button clickable on iOS#1549
Marcosld merged 2 commits into
masterfrom
fix-ios-close-button

Conversation

@Marcosld

@Marcosld Marcosld commented May 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Move the Sheet dismiss (close) button outside the scrollable <section> so it is not clipped by the parent's overflowY: auto.
  • On iOS, the close button was rendered outside the visible scroll area and therefore not clickable. Hoisting it to the sibling container (alongside sheetTopDraggingArea) restores tap interaction without affecting visual placement.

Move the dismiss button outside the scrollable section so it's not clipped by the parent's overflowY:auto, which on iOS prevented taps on the button when positioned outside the visible scroll area.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 20, 2026 07:45
@Marcosld Marcosld added the AI AI Generated label May 20, 2026
@github-actions

Copy link
Copy Markdown

Size stats

master this branch diff
Total JS 16.1 MB 16.1 MB -72 B
JS without icons 2.02 MB 2.02 MB -72 B
Lib overhead 92.5 kB 92.5 kB 0 B
Lib overhead (gzip) 19.9 kB 19.9 kB 0 B

@Marcosld Marcosld requested review from atabel and yceballost May 20, 2026 07:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes an iOS Safari interaction issue in the Sheet component by moving the dismiss (close) button out of the scrollable container so it doesn’t get clipped by overflowY: auto, restoring tap/click behavior.

Changes:

  • Hoist the Sheet dismiss button to be a sibling of the scrollable <section> instead of a child.
  • Keep visual placement via existing styles.dismissButton absolute positioning while avoiding iOS overflow clipping.
Comments suppressed due to low confidence (1)

src/sheet-common.tsx:263

  • The dismiss (close) button is now rendered outside the element with role="dialog" / aria-modal. This can hurt screen reader semantics because the close control may no longer be considered part of the dialog. Consider moving the role="dialog" (and related aria-*) to a wrapper that includes both the close button and the scrollable area, or keep the section as the dialog container and introduce an inner scrollable element (with overflowY: auto) so the close button can remain inside the dialog but outside the scroll clipping context.
                            <section
                                role="dialog"
                                aria-modal="true"
                                aria-labelledby={modalTitleId}
                                onScroll={onScroll}

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions

github-actions Bot commented May 20, 2026

Copy link
Copy Markdown

Deploy preview for mistica-web ready!

Project:mistica-web
Status: ✅  Deploy successful!
Preview URL:https://mistica-dmbvp44bi-flows-projects-65bb050e.vercel.app
Latest Commit:a37ea55

Deployed with vercel-action

@yceballost yceballost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@github-actions

github-actions Bot commented May 20, 2026

Copy link
Copy Markdown

Screenshot tests report

✔️ All passing

@github-actions

github-actions Bot commented May 20, 2026

Copy link
Copy Markdown

Accessibility report
✔️ No issues found

ℹ️ You can run this locally by executing yarn audit-accessibility.

@Marcosld Marcosld added this pull request to the merge queue May 20, 2026
Merged via the queue into master with commit 85be767 May 20, 2026
11 of 13 checks passed
@tuentisre

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 16.63.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@tuentisre

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 16.64.0-beta.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

joaoelias1921 pushed a commit to joaoelias1921/mistica-web that referenced this pull request Jun 9, 2026
## [16.63.1](Telefonica/mistica-web@v16.63.0...v16.63.1) (2026-05-22)

### Bug Fixes

* **Inline:** allow children to expand ([Telefonica#1546](Telefonica#1546)) ([36a8e9b](Telefonica@36a8e9b))
* **Sheet:** make close button clickable on iOS ([Telefonica#1549](Telefonica#1549)) ([85be767](Telefonica@85be767))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants