-
Notifications
You must be signed in to change notification settings - Fork 0
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
Revert "Zero all padding for BT, VGS, and Rosetta elements" #276
Revert "Zero all padding for BT, VGS, and Rosetta elements" #276
Conversation
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @devinmorgan and the rest of your teammates on Graphite |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made this a PR so to make it easier for folks to find this branch; it's just supposed to demo what the different vaul elements looked like before the styling changes. However, the best way to demo it required modifying the ForagePINEditText
in a way that we don't actually want. That's why I'll be closing this once if #247 is accepted.
This reverts commit ed486f0.
3323559
to
bd7e89d
Compare
bf6bee8
to
e71562e
Compare
<!-- Update your title to prefix with your ticket number --> ## What Ensure the base appearances of the VGS, BT, and Rosetta text elements are identical. The main problem was that VGS and BT were setting default patterns. This PR zeroes out the paddings of all of our vaults. It's worth mentioning that padding has the identical visual effect as adjusting the width and height of the text element when the text is horizontally and vertically centered. For this reason, I believe zeroing out the padding is an acceptable solution. <!-- Please include a summary of the change. List any dependencies that are required for this change. --> ## Why Forage needs to route traffic to different vault providers transparently based on availability. We were facing a problem where swapping out the vault providers was _not_ transparent when `inputHeight` or `inputWidth` attributes were not supplied to `ForagePINEditText`, a valid SDK usage. <!-- Describe the motivations behind this change if they are a subset of your ticket --> ## Test Plan This was a purely appearance change, so I did not add any tests. ## Demo NOTE: The demo images are from two other branches that modified `ForagePINEditText` to render VGS, BT, and Rosetta side-by-side. We don't want those demo-changes in `main` so that demo-code lives in separate branches that won't get merged in (i.e. #275 and #276) ### Before - No Styling Parity > 📌 To view this demo for yourself, pull `devin/demo-with-NO-styling-parity` ![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/IfyQmT9sZxXL1kIgYI4y/8225aa50-685b-4ab2-816b-f652d17e73b6.png) ### After - With Styling Parity > 📌 To view this demo for yourself, pull `devin/demo-with-styling-partity` ![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/IfyQmT9sZxXL1kIgYI4y/7b80f2ca-d2e8-473e-bbaa-c52e2113f300.png) <!-- If applicable, please include a screenshot to this PR description --> <!-- If applicable, please include a screen recording and post it in #feature-recordings --> ## How Let's discuss what we think about this change. Once we're all aligned, this PR can be merged in. NOTE: I will be closing out #275 and #276. They were only meant to serve as demos and not actually meant to be merged. <!-- Describe the rollout plan if it includes multiple PRs/Repos or requires extra steps beyond reverting this PR -->
What
Why
Test Plan
Demo
How