Skip to content

[Issue] fix conflict for logo_height argument by default.xml #30377

Open
@m2-assistant

Description

@m2-assistant

This issue is automatically created based on existing pull request: #30370: fix conflict for logo_height argument by default.xml


Description (*)

For a new theme, for example child of luma, if you want change the logo by default.xml and set also his size by the height, you should write this:

<referenceBlock name="logo"> <arguments> <argument name="logo_file" xsi:type="string">images/logo.png</argument> <argument name="logo_height" xsi:type="number">300</argument> </arguments> </referenceBlock>

Now the problem is that it doesn't works, because there is a conflict with the line 151 of _module.less:
Schermata 2020-10-07 alle 19 56 30
Schermata 2020-10-07 alle 19 56 42

The result is that our rule is overwritten:
Schermata 2020-10-07 alle 19 22 14

It doesn't happen with Width.
Sometime we want set the image by height and not by the width... or maybe with both... why not? It's your choice.
So for now the logo_height have no sense to exist.

The height: auto should be deleted and all will work fine.

Related Pull Requests

Fixed Issues (if relevant)

Manual testing scenarios (*)

  1. Magento 2.4-develop

  2. Create a new theme child of Luma

  3. Create the default.xml and copy this:

     <referenceBlock name="logo">
      <arguments>
             <argument name="logo_file" xsi:type="string">images/logo.png</argument>
             <argument name="logo_height" xsi:type="number">300</argument>
       </arguments>
     </referenceBlock>
    
  4. Put your custom logo.png inside the images folder.

  5. Save and delete the cache

  6. Refresh the page

Questions or comments

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 are green)

Activity

added
Priority: P4No current plan to fix. Fixing can be deferred as a logical part of more important work.
Severity: S4Affects aesthetics, professional look and feel, “quality” or “usability”.
on Oct 8, 2020
added
Progress: PR CreatedIndicates that Pull Request has been created to fix issue
and removed
Progress: PR CreatedIndicates that Pull Request has been created to fix issue
on Oct 8, 2020
Repository owner unassigned on Nov 2, 2020
ghost removed
Progress: PR CreatedIndicates that Pull Request has been created to fix issue
on Nov 2, 2020
removed
Reported on 2.4.xIndicates original Magento version for the Issue report.
on Nov 13, 2020
self-assigned this
on Dec 9, 2020
m2-assistant

m2-assistant commented on Dec 9, 2020

@m2-assistant
Author

Hi @krishprakash. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: 👇

  • 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).

    DetailsIf the issue has a valid description, the label Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.

    2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.

    3. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

    4. Verify that the issue is reproducible on 2.4-develop branch

    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

    5. Add label Issue: Confirmed once verification is complete.

    6. Make sure that automatic system confirms that report has been added to the backlog.

added
Issue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passed
Issue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch
on Dec 9, 2020
magento-engcom-team

magento-engcom-team commented on Dec 9, 2020

@magento-engcom-team
Contributor

✅ Confirmed by @krishprakash
Thank you for verifying the issue. Based on the provided information internal tickets MC-39781 were created

Issue Available: @krishprakash, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

magentoexpert

magentoexpert commented on Jan 24, 2021

@magentoexpert

This is not a solution and it does not work with Magento 2.4.1 installed with composer. The folder structure is completely different
The folder structure: /app/design/frontend/Magento is empty and obsolete
From Admin / Content / Configuration/ / Header you can set the width and height of the logo but this is not reflected on the front end.
Creating the .xml file as suggested above has no effect whatsoever

moved this to Pull Request In Progress in Low Priority Backlogon Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Event: Distributed CD India 2020Issue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P4No current plan to fix. Fixing can be deferred as a logical part of more important work.Progress: PR in progressReported on 2.4.0Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S4Affects aesthetics, professional look and feel, “quality” or “usability”.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @sdzhepa@PierW@magento-engcom-team@krishprakash@magentoexpert

      Issue actions

        [Issue] fix conflict for logo_height argument by default.xml · Issue #30377 · magento/magento2