Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Declaring the logo size #7023

Merged
merged 4 commits into from
Apr 30, 2020
Merged

Declaring the logo size #7023

merged 4 commits into from
Apr 30, 2020

Conversation

abrarpathan19
Copy link
Contributor

Purpose of this pull request

This pull request (PR) will provide information for Declaring the logo size

Affected DevDocs pages

Links to Magento source code

@devops-devdocs
Copy link
Collaborator

An admin must run tests on this PR before it can be merged.

@@ -83,6 +83,8 @@ To customize the Admin theme logo:
<referenceBlock name="logo">
<arguments>
<argument name="logo_image_src" xsi:type="string">images/custom-logo.svg</argument>
<argument name="logo_img_width" xsi:type="number">150</argument> <!-- Add custom logo width -->
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @abrarpathan19. Thank you for your contribution. Could you, please, refer to the functional part of the codebase that operates with logo_img_width and logo_img_height parameters? I'm unable to find this logic in the Magento\Backend\Block\Page\Header class or related functional parts.

Thank you!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hello @rogyar,

Thanks for review. This is the customize the Admin theme logo section so, I have added custom with and height for the logo.

Copy link
Contributor

Choose a reason for hiding this comment

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

Be aware that logo_img_width and logo_img_height are being replaced with logo_width and logo_height as of Magento 2.3.5. See magento/magento2#25042 (comment) for more info.

Copy link
Contributor

Choose a reason for hiding this comment

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

Good eye, @hostep. @abrarpathan19, if you want to get this change into 2.3.5-develop, that would be great.

Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @dobooth. Since the mentioned parameters were removed from the codebase and replaced by new parameters (logo_width and logo_height), we may leave it in the master branch but adjust the parameter names to reflect the actual state in the codebase. @abrarpathan19 would you make this change, please?

@abrarpathan19
Copy link
Contributor Author

abrarpathan19 commented Apr 28, 2020

Hello @rogyar,
I have update suggested changes please review
Thank you

@rogyar rogyar added Technical Updates to the code or processes that alter the technical content of the doc 2.3.5 labels Apr 29, 2020
@dobooth dobooth added 2.3.x Magento 2.3 related changes and removed 2.3.5 labels Apr 30, 2020
@dobooth
Copy link
Contributor

dobooth commented Apr 30, 2020

running tests

@dobooth dobooth merged commit e8dcc29 into magento:master Apr 30, 2020
@ghost
Copy link

ghost commented Apr 30, 2020

Hi @abrarpathan19, 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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
2.3.x Magento 2.3 related changes Partner: Krish TechnoLabs partners-contribution PR created by Magento partner Technical Updates to the code or processes that alter the technical content of the doc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants