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

Revert "Zero all padding for BT, VGS, and Rosetta elements" #276

Conversation

devinmorgan
Copy link
Contributor

What

Why

Test Plan

  • ✅ | ❌ I've added unit tests for this change.
  • ✅ | ❌ The reviewer should manually test the changes in this PR.

Demo

How

Copy link
Contributor Author

devinmorgan commented Jun 18, 2024

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.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @devinmorgan and the rest of your teammates on Graphite Graphite

Copy link
Contributor Author

@devinmorgan devinmorgan left a 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.

@devinmorgan devinmorgan force-pushed the devin/demo-with-styling-partity branch from 3323559 to bd7e89d Compare June 18, 2024 14:15
@devinmorgan devinmorgan force-pushed the devin/demo-with-NO-styling-parity branch from bf6bee8 to e71562e Compare June 18, 2024 14:15
devinmorgan added a commit that referenced this pull request Jun 18, 2024
<!-- 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 -->
@devinmorgan devinmorgan deleted the devin/demo-with-NO-styling-parity branch July 1, 2024 12:20
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.

1 participant