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

Maintain DOM tree when top bar is undefined in reframe #11998

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sophschneider
Copy link
Contributor

@sophschneider sophschneider commented May 9, 2024

WHY are these changes introduced?

Part of https://github.com/Shopify/polaris-backlog/issues/1610
Fixes https://github.com/Shopify/polaris-backlog/issues/1609

WHAT is this pull request doing?

Conditionally rendering the frame wrapper classes depending on the topBar prop was causing Frame's children to unmount when Frame's props changed. This was causing a bug for full screen pages in the admin because they changed the fullscreen state on unmount.

Only changing classnames for the frame's wrapper classes ensure that the children do not unmount when topBar becomes undefined

How to 🎩

Analytics

  1. press fullscreen button
  2. Make sure analytics goes full screen

Online store

  1. press customize button
  2. make sure online store editor loads properly

🎩 checklist

@sophschneider
Copy link
Contributor Author

/snapit

@sophschneider
Copy link
Contributor Author

/snapit

Copy link
Contributor

github-actions bot commented May 9, 2024

🫰✨ Thanks @sophschneider! Your snapshot has been published to npm.

Test the snapshot by updating your package.json with the newly published version:

"@shopify/polaris": "0.0.0-snapshot-20240509153439"

@sophschneider
Copy link
Contributor Author

/snapit

Copy link
Contributor

github-actions bot commented May 9, 2024

🫰✨ Thanks @sophschneider! Your snapshot has been published to npm.

Test the snapshot by updating your package.json with the newly published version:

"@shopify/polaris": "0.0.0-snapshot-20240509173401"

@sophschneider sophschneider changed the title Maintain DOM ordering when top bar is undefined in reframe Maintain DOM tree when top bar is undefined in reframe May 9, 2024
@sophschneider
Copy link
Contributor Author

/snapit

Copy link
Contributor

github-actions bot commented May 9, 2024

🫰✨ Thanks @sophschneider! Your snapshot has been published to npm.

Test the snapshot by updating your package.json with the newly published version:

"@shopify/polaris": "0.0.0-snapshot-20240509180633"

@sophschneider
Copy link
Contributor Author

/snapit

Copy link
Contributor

🫰✨ Thanks @sophschneider! Your snapshot has been published to npm.

Test the snapshot by updating your package.json with the newly published version:

"@shopify/polaris": "0.0.0-snapshot-20240510034702"

@sophschneider
Copy link
Contributor Author

/snapit

Copy link
Contributor

🫰✨ Thanks @sophschneider! Your snapshot has been published to npm.

Test the snapshot by updating your package.json with the newly published version:

"@shopify/polaris": "0.0.0-snapshot-20240510035701"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant