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

fix(button): prevent container keys ui flash #1033

Merged
merged 3 commits into from Jul 23, 2021

Conversation

shortcuts
Copy link
Member

@shortcuts shortcuts commented Jul 23, 2021

Follow up of #1021

Summary

This PR prevent the UI flash for server-side rendered websites. Since the key value is null, the keys container isn't rendered and therefore causes a UI flash.

Result

The condition is now a level below (on the keys), and we've added a fixed width to the container.

Preview

Screen.Recording.2021-07-23.at.15.47.59.mov

Related

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jul 23, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit bfa436a:

Sandbox Source
Vanilla Configuration

@shortcuts shortcuts marked this pull request as ready for review July 23, 2021 14:02
Co-authored-by: François Chalifour <francoischalifour@users.noreply.github.com>
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

2 participants