Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@
padding-top: @main__indent-top;
}

.menu-wrapper {
.logo-static {
pointer-events: none;
}
}

//
// Header
// _____________________________________________
Expand Down
2 changes: 1 addition & 1 deletion setup/pub/styles/setup.css

Large diffs are not rendered by default.

13 changes: 10 additions & 3 deletions setup/view/magento/setup/navigation/side-menu.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@

// @codingStandardsIgnoreFile

use Magento\Backend\Model\UrlInterface;
use Magento\Framework\App\ObjectManager;

$objectManager = ObjectManager::getInstance();
/** @var Magento\Backend\Model\UrlInterface $backendUrl */
$backendUrl = $objectManager->get(UrlInterface::class);

?>
<?php $expressions = []; foreach ( $this->main as $item ): ?>
<?php $expressions[] = '!$state.is(\'' . $item['id'] . '\')';
Expand All @@ -20,13 +27,13 @@
ng-show="<?= implode( '&&', $expressions) ?>"
>
<nav class="admin__menu" ng-controller="mainController">
<span
class="logo logo-static"
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @arnoudhgz, thanks for your contribution!
When you remove the CSSclass logo-static from the template, it should be possible to remove its declaration in the LESS file. Please can you look into this?

Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mzeis thank you for the feedback, this was indeed possible.

It was also set in the setup/pub/styles/setup.css file (which was actually loaded on the page).

I removed it from both locations.

image

<a href="<?= $backendUrl->getBaseUrl() . $backendUrl->getAreaFrontName(); ?>"
class="logo"
data-edition="Community Edition">
<img class="logo-img"
src="./pub/images/logo.svg"
alt="Magento Admin Panel">
</span>
</a>
<ul id="nav" role="menubar">
<li class="item-home level-0" ng-class="{_active: $state.current.name === 'root.home'}">
<a href="" ui-sref="root.home">
Expand Down