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

issue fixed #20382 #20383

Merged

Conversation

irajneeshgupta
Copy link
Member

@irajneeshgupta irajneeshgupta commented Jan 17, 2019

Description (*)

Fixed Issues (if relevant)

  1. View and Edit Cart link not aligned in middle because bellow the link a blank div (class="minicart-widgets") existing has 15px margin top, this div (class="minicart-widgets" ) should be display none or should not come if has no content, should only display if has content #20382: View and Edit Cart link not aligned in middle

Manual testing scenarios (*)

  1. Open frontend
  2. Add any product in cart and go to minicart and see View and Edit Cart Link
  3. You will see extra space bellow the link

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@magento-engcom-team
Copy link
Contributor

Hi @irajneeshgupta. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento-engcom-team give me test instance - deploy test instance based on PR changes
  • @magento-engcom-team give me 2.3-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Assistant documentation

@Karlasa
Copy link
Contributor

Karlasa commented Jan 19, 2019

Hi @irajneeshgupta
Thanks for adding me as a reviewer ;)
I would not remove styles from that element and even if i would do that, i would fix it in both "Luma" and "Blank" theme.

Currently i'm not sure where this UI component item is even used?
example for in default.xml in checkout there are both UI component for promotions and container for blocks.

Probably UI component is not in use by default and was added for possible add-on modules.
But anyways my solution would be to add check into html template so i would not render that element if there are no child components to render.

TLDR: Change in https://github.com/magento/magento2/blob/2.3-develop/app/code/Magento/Checkout/view/frontend/web/template/minicart/content.html#L100
from:
<div id="minicart-widgets" class="minicart-widgets">
to:
<div id="minicart-widgets" class="minicart-widgets" if="getRegion('promotion').lenght">

Cheers,

Copy link
Contributor

@Karlasa Karlasa left a comment

Choose a reason for hiding this comment

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

I would instead add check for that component in html so it would not render if there are no content/child elements.

@irajneeshgupta
Copy link
Member Author

I would instead add check for that component in html so it would not render if there are no content/child elements.

Thank you , i am making changes to this commit.

@irajneeshgupta
Copy link
Member Author

irajneeshgupta commented Jan 21, 2019

Hi @irajneeshgupta
Thanks for adding me as a reviewer ;)
I would not remove styles from that element and even if i would do that, i would fix it in both "Luma" and "Blank" theme.

Currently i'm not sure where this UI component item is even used?
example for in default.xml in checkout there are both UI component for promotions and container for blocks.

Probably UI component is not in use by default and was added for possible add-on modules.
But anyways my solution would be to add check into html template so i would not render that element if there are no child components to render.

TLDR: Change in https://github.com/magento/magento2/blob/2.3-develop/app/code/Magento/Checkout/view/frontend/web/template/minicart/content.html#L100
from:
<div id="minicart-widgets" class="minicart-widgets">
to:
<div id="minicart-widgets" class="minicart-widgets" if="getRegion('promotion').lenght">

Cheers,

Hi @Karlasa
Please review, i have updated my commits.
Thank you.

@magento-engcom-team
Copy link
Contributor

Hi @sivaschenko, thank you for the review.
ENGCOM-4066 has been created to process this Pull Request

@ghost
Copy link

ghost commented Feb 10, 2019

Hi @irajneeshgupta, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants