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

Louisa mobile drawer UI fix #2695

Merged
merged 6 commits into from
Jun 20, 2023
Merged

Conversation

lougoncharenko
Copy link
Contributor

@lougoncharenko lougoncharenko commented Jun 6, 2023

PR Summary:

Links, Social Icons, Language, Country/currency, and Account icon/label are aligned with close button and cart icon.

Why are these changes introduced?

Fixes #2671

What approach did you take?

  • Added vertical padding to the header
  • Added vertical padding/ heading to the icons, Account icon/label, and Country/currency to line up with close button and cart icon
# Decision Alternatives Rationale Downsides
1

Visual impact on existing themes

Testing steps/scenarios

  • Test the drawer in mobile setting on a phone
  • Test mobile drawer in fullscreen - changes are for mobile only
  • Test mobile drawer on desktop - changes are for mobile only
  • Test color scheme and gradient to ensure nothing is broken

Demo links

Checklist

@lougoncharenko lougoncharenko self-assigned this Jun 6, 2023
@lougoncharenko lougoncharenko linked an issue Jun 6, 2023 that may be closed by this pull request
7 tasks
@lougoncharenko
Copy link
Contributor Author

Screenshot of everything lining up
Screenshot 2023-06-06 at 11 27 16 AM

Video showing mobile drawer with mobile inspector
https://github.com/Shopify/dawn/assets/93098869/4a5baaad-172c-4e54-a9ba-d884515d7c7f

@YoannJailin
Copy link

Hi Louisa! I just recorded a piece of feedback in that video!
Sorry for the sound in the background!

@ludoboludo ludoboludo self-requested a review June 8, 2023 15:33
Copy link
Contributor

@ludoboludo ludoboludo left a comment

Choose a reason for hiding this comment

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

Looking good 👍

Left a few comments

Copy link
Contributor

@kmeleta kmeleta left a comment

Choose a reason for hiding this comment

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

One minor tweak we could make (if it doesn't cause any trouble), but this otherwise looks approvable to me 👍

Comment on lines 234 to 237
padding: 1rem 0rem;
font-size: 1.4rem;
color: rgb(var(--color-foreground));
margin-bottom: 2rem;
margin-bottom: 0rem;
Copy link
Contributor

@kmeleta kmeleta Jun 20, 2023

Choose a reason for hiding this comment

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

Nitpicks padding: 1rem 0; and margin-bottom: 0; There's another 0 instance up higher in this file as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removing padding: 1rem 0; throws off the padding top. 1st image shows with the padding: 1rem and the second image shows it without.
We want the container holding the social media links and utility links to have a equal padding on the top and bottom :)
Screenshot 2023-06-20 at 10 50 43 AM
Screenshot 2023-06-20 at 10 50 57 AM

Copy link
Contributor

Choose a reason for hiding this comment

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

I just meant to remove the "rem" itself from the 0rem values as its redundant and we typically just use 0 in these cases.

@@ -90,7 +90,7 @@ details[open].menu-opening > .menu-drawer__submenu {
}

.menu-drawer__navigation {
padding: 5.6rem 0;
padding: 3rem 0;
}

.menu-drawer__inner-submenu {
Copy link
Contributor

Choose a reason for hiding this comment

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

Very extremely super minor, but we could probably tweak the arrow icon positioning on the L2/3 if we wanted. Seems just a tad too far left.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was suggested by ludo to make it 3rem. I am open to other suggestions. What would look better from a ux point?
Screenshot 2023-06-20 at 10 54 58 AM

Copy link
Contributor

Choose a reason for hiding this comment

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

Oops, sorry just shared the same thing on my review just now. Basically here, it was the margin in your commit that was changed instead of the padding value :)

@@ -202,7 +202,7 @@ details[open].menu-opening > .menu-drawer__submenu {

.menu-drawer__close-button .icon-arrow {
transform: rotate(180deg);
margin-right: 1rem;
margin-right: 3rem;
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't believe this should be changed 🤔 It seem to push away the word(s) next to it.

It's the .menu-drawer__close-button that needs some tweaking. It currently have this padding value:

    padding: 1.2rem 2.6rem;

which should be tweaked to

    padding: 1.2rem 2.6rem 1.2rem 3rem;

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry! I misunderstood , I made the suggestions as suggested! Thank you both :)

Copy link
Contributor

@ludoboludo ludoboludo left a comment

Choose a reason for hiding this comment

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

It's looking good to me 👍

Copy link
Contributor

@kmeleta kmeleta left a comment

Choose a reason for hiding this comment

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

Perfect, thanks Louisa!

@lougoncharenko lougoncharenko merged commit 33c8c97 into main Jun 20, 2023
@lougoncharenko lougoncharenko deleted the louisa-mobile-drawer-ui-fix branch June 20, 2023 16:50
phapsidesGT pushed a commit to Gravytrain-UK/gt-shopify-dawn-theme that referenced this pull request Sep 3, 2024
* added horizontal and vertical padding in Mobile drawer

* vertical padding and horizontal padding work with large lists-need to fix padding w/out scrollbar

* all icons, links are aligned with the close button and shop icon on mobile

* horizontal and vertical paddings all equate to 3rem around Nav and utility links

* added padding to close button on l3 links, adjusted padding for social links

* fixed close button padding
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.

Mobile drawer UI fix
4 participants