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: add border to onboarding form #5144

Merged
merged 1 commit into from
Mar 28, 2024
Merged

fix: add border to onboarding form #5144

merged 1 commit into from
Mar 28, 2024

Conversation

pete-watters
Copy link
Contributor

@pete-watters pete-watters commented Mar 28, 2024

Try out Leather build 6c11191Extension build, Test report, Storybook, Chromatic

This PR:

  • adds a border to the mnemonic key / onboarding form
  • slightly reduces the padding of the back arrow if it's an onboarding page

@@ -42,6 +42,7 @@ export function Header({
justifyContent="center"
margin={{ base: 0, md: 'auto' }}
p={variant === 'bigTitle' ? 'space.05' : 'space.04'}
paddingLeft={variant === 'onboarding' ? 0 : undefined}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not proud of this variant logic.

We went through this exercise of improving the app to have global re-usable headers but we still need to add bespoke cases all the time to match the designs

For these two column page designs, the page content is wider than the other pages to fit the mnemonic form

Screenshot 2024-03-28 at 15 36 28

I am removing left padding but it still won't match up completely as it doesn't in the design either

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We went through this exercise of improving the app to have global re-usable headers but we still need to add bespoke cases all the time to match the designs

My understanding is that this border should be added to the page's main container as a general pattern, essentially everywhere aside from the home screen. If you're finding yourself adding bespoke logic, let's pause and discuss with the designers since I definitely don't want to slide back into a bunch of conditional styles throughout the app.

cc @fabric-8 @mica000

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this comment I'm talking about the Back arrow at the top of the page which was aligned exactly as per design but doesn't align with the left content below.

Maybe the left content should have some left padding instead?

The onboarding pages have a different width than the others to account for the larger mnemonic key form but this means the global header doesn't line up.

An alternative fix would be to standardise the page container width so all pages are the same width and add more padding to the home page

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great @pete-watters — Agree with you, I don't quite understand right now why we aren't using the same widths and paddings across onboarding + app so we can standardize this more — I might miss something here, will sync up with @mica000.

Would you prefer to handle the standardization bit right away in here or ok to merge this in now and handle the container standardization as a seperate issue?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not worry about more changes now. I think we have it working OK and we already spent a lot of time on this issue.

We can think about it and maybe improve it in the future / when working on other things have it in mind

@pete-watters pete-watters added this pull request to the merge queue Mar 28, 2024
Merged via the queue into dev with commit a6bda2d Mar 28, 2024
29 of 30 checks passed
@pete-watters pete-watters deleted the fix/5134/onboarding branch March 28, 2024 16:04
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.

Tweak onboarding: Add borders to onboarding containers, fix back arrow alignment
4 participants