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

UI: Fix composition support in safari #17679

Merged
merged 2 commits into from Mar 14, 2022

Conversation

ndelangen
Copy link
Member

@ndelangen ndelangen commented Mar 10, 2022

Issue: #15920

What I did

I changed the way of hiding frames from using css visibility property, to using display: none|block

This is relevant for refs / composition.

The problem was that visibility:hidden is sometimes used by click-jacking attempt, and thus safari protects the user by ignoring the css, when the frames are cross-origin.

By changing the use to display:none, the element is no longer a click-target.

How to test

  • Is this testable with Jest or Chromatic screenshots?
  • Does this need a new example in the kitchen sink apps?
  • Does this need an update to the documentation?

@nx-cloud
Copy link

nx-cloud bot commented Mar 10, 2022

☁️ Nx Cloud Report

CI is running/has finished running commands for commit f61263f. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

@ndelangen ndelangen requested a review from yannbf March 10, 2022 10:14
@ndelangen ndelangen self-assigned this Mar 10, 2022
@ndelangen ndelangen added bug patch:yes Bugfix & documentation PR that need to be picked to main branch labels Mar 10, 2022
@shilman shilman changed the title fix frames-renderer not properly hiding frames (refs or main) in safari UI: Fix composition support in safari Mar 14, 2022
@shilman shilman merged commit 9022de6 into next Mar 14, 2022
@shilman shilman deleted the norbert/ch-1636-storybook-composition-ref-is-shown-when branch March 14, 2022 14:47
@shilman shilman added the patch:done Patch/release PRs already cherry-picked to main/release branch label Apr 1, 2022
shilman added a commit that referenced this pull request Apr 1, 2022
…composition-ref-is-shown-when

UI: Fix composition support in safari
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug composition patch:done Patch/release PRs already cherry-picked to main/release branch patch:yes Bugfix & documentation PR that need to be picked to main branch ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants