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

Made mobile drawer full width by default-header #2625

Merged

Conversation

lougoncharenko
Copy link
Contributor

PR Summary:

Mobile drawer is full width by default

Why are these changes introduced?

Fixes #2563

What approach did you take?

I changed the width of the menu-drawer to be 100% by default.

Visual impact on existing themes

Not Applicable

Testing steps/scenarios

  • Test drawer menu in mobile setting
  • Test drawer menu in desktop setting
  • Test drawer menu in full screen setting
  • Apply color scheme to menu to ensure nothing is broken.

Demo links

Checklist

@lougoncharenko lougoncharenko self-assigned this May 11, 2023
@lougoncharenko lougoncharenko linked an issue May 11, 2023 that may be closed by this pull request
@eugenekasimov eugenekasimov self-requested a review May 11, 2023 16:05
Copy link
Contributor

@eugenekasimov eugenekasimov left a comment

Choose a reason for hiding this comment

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

🚀

@kmeleta
Copy link
Contributor

kmeleta commented May 15, 2023

Thanks Louisa, this looks good. Just want to confirm with @YoannJailin that desktop and "tablet" drawers should remain as they are (viewports 750px and wider).

@YoannJailin
Copy link

Hello! Thanks it looks great.
@kmeleta yes the changes only applies on mobile resolution!
@lougoncharenko i can see a super faint/small vertical line on the right when drawer is opened, not sure if it's part of the drawer's shadow. Is there a way to hide it?

Capture d’écran, le 2023-05-15 à 10 51 02

Copy link
Contributor

@eugenekasimov eugenekasimov left a comment

Choose a reason for hiding this comment

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

🚀

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.

Sorry! I realized what's going on with the right-side border on the drawer. More details in the comments. I don't think this is a big problem but we should probably make some adjustments.

@lougoncharenko lougoncharenko requested a review from kmeleta May 16, 2023 12:22
Comment on lines 74 to 77
.no-js .menu-drawer {
height: auto;

}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
.no-js .menu-drawer {
height: auto;
}
.no-js .menu-drawer {
height: auto;
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for catching that! I just removed it and pushed the changes

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.

Looks great! Thanks for the final tweaks 🚢

@lougoncharenko lougoncharenko merged commit 6b51d57 into main May 17, 2023
@lougoncharenko lougoncharenko deleted the louisa-header-make-mobile-drawer-full-width-by-default branch May 17, 2023 12:21
ludoboludo pushed a commit that referenced this pull request Jun 5, 2023
* Made mobile drawer full width by default-header

* removed the small vertical line border kept appearing on drawer menu when l1,l2&l3 links were opened

* reverted code to include border for customization for tablet and desktop and removed it for mobile version

* removed border in mobile and added it in tablet version using media queries

* removed white space per suggestion
pangloss added a commit to pangloss/dawn that referenced this pull request Jun 14, 2023
* shopify/main: (59 commits)
  [Announcement bar] Add social icons (Shopify#2497)
  Update theme version to match the pubic release (Shopify#2698)
  Add release/v10.0.0 branch fixes to main (Shopify#2693)
  fix default UI for dropdown and mega menu (Shopify#2644)
  Fix link formatting in Related Products heading (Shopify#2680)
  Update 2 translation files (Shopify#2637)
  Enable gift card recipient form by default on featured product section (Shopify#2666)
  Gift cards/enable recipient form by default (Shopify#2618)
  Add a Color Scheme setting for Menus-Header (Shopify#2622)
  Made mobile drawer full width by default-header (Shopify#2625)
  Allow multiple announcement bars in Header group (Shopify#2619)
  [Feat Product] Add rating styling sheet (Shopify#2620)
  Fix password page variables (Shopify#2607)
  Fix transform applied when it should not for sliders (Shopify#2606)
  Modify info string for gift card recipient checkbox (Shopify#2588)
  [3D lift animation] Raise hovered card above adjacent cards (Shopify#2589)
  Remove fallback color scheme info text (Shopify#2602)
  Fix CSS specifity issue to cancel animation for theme editor events (Shopify#2605)
  Remove settings daya for icon color (Shopify#2601)
  Follow ups for accessibility of announcements slider (Shopify#2580)
  ...
phapsidesGT pushed a commit to Gravytrain-UK/gt-shopify-dawn-theme that referenced this pull request Sep 3, 2024
* Made mobile drawer full width by default-header

* removed the small vertical line border kept appearing on drawer menu when l1,l2&l3 links were opened

* reverted code to include border for customization for tablet and desktop and removed it for mobile version

* removed border in mobile and added it in tablet version using media queries

* removed white space per suggestion
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.

[Header] Make mobile drawer full width by default
4 participants