Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS Safari Change Tabs Swipe Gesture Affects Modal Component #42229

Open
johndebord opened this issue May 14, 2024 · 4 comments
Open

iOS Safari Change Tabs Swipe Gesture Affects Modal Component #42229

johndebord opened this issue May 14, 2024 · 4 comments
Labels
browser: Safari component: drawer This is the name of the generic UI component, not the React module! customization: css Design CSS customizability

Comments

@johndebord
Copy link

johndebord commented May 14, 2024

Steps to reproduce

I have no idea what's going on.
It looks like the styling of Instagram is affecting my web app when tabbing back and forth.
I've tested this on other websites and my web app works fine.
I've attached a video of the behavior below.

Minimal example code:

export default function App() {
  return (
    <SwipeableDrawer
      SlideProps={{
        sx: {
          height: "61.8%",
        },
      }}
      anchor="bottom"
      onOpen={() => {}}
      open
    >
      asdf
    </SwipeableDrawer>
  );
}

Your environment

iOS Version: 16.6.1
Model Name: iPhone 12 Pro Max

Search keywords: Style CSS JS Bleed

@johndebord johndebord added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label May 14, 2024
@johndebord
Copy link
Author

RPReplay_Final1715660059.mov

@johndebord johndebord changed the title Styling Bleeding Through Different Safari Tabs Styling Bleeding Through Different iOS Safari Tabs May 14, 2024
@johndebord

This comment was marked as outdated.

@github-actions github-actions bot removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label May 14, 2024
@johndebord johndebord changed the title Styling Bleeding Through Different iOS Safari Tabs CSS/JS Bleeding Through Different iOS Safari Tabs May 14, 2024
@johndebord johndebord changed the title CSS/JS Bleeding Through Different iOS Safari Tabs CSS/JS Bleeding Through Adjacent iOS Safari Tabs May 14, 2024
@zannager zannager added component: drawer This is the name of the generic UI component, not the React module! browser: Safari customization: css Design CSS customizability labels May 14, 2024
@johndebord johndebord reopened this May 14, 2024
@johndebord
Copy link
Author

Tested this again today, and I still have the issue even after upgrading to iOS 17.5

@johndebord
Copy link
Author

After further testing, the styles do not bleed into another Safari tab. It was coincidental that the bottom navigation bar of Instagram shares the same height that the Modal moves up by when this issue appears.

export default function App() {
  return (
    <Modal open>
      <Typography>asdf</Typography>
    </Modal>
  );
}

The root cause of this issue appears to stem from the Modal component. Here's another video highlighting the problem.

RPReplay_Final1715716280.MOV

@johndebord johndebord changed the title CSS/JS Bleeding Through Adjacent iOS Safari Tabs iOS Safari Change Tabs Swipe Gesture Affects Modal Component May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser: Safari component: drawer This is the name of the generic UI component, not the React module! customization: css Design CSS customizability
Projects
None yet
Development

No branches or pull requests

2 participants