Skip to content

Commit f979863

Browse files
magento-commerce/magento2-login-as-customer#94: "Login as Customer" button must be next to the “Back button” on the left.
1 parent a86d2d6 commit f979863

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

app/code/Magento/LoginAsCustomerAdminUi/Ui/Customer/Component/Control/LoginAsCustomerButton.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function getButtonData(): array
6969
'on_click' => 'window.lacConfirmationPopup("'
7070
. $this->escaper->escapeHtml($this->escaper->escapeJs($this->getLoginUrl()))
7171
. '")',
72-
'sort_order' => 70,
72+
'sort_order' => 15,
7373
];
7474
}
7575

app/code/Magento/LoginAsCustomerAdminUi/view/adminhtml/web/css/source/_module.less

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,14 @@
3939
}
4040
}
4141
}
42+
43+
.page-actions {
44+
.page-actions-buttons {
45+
.login-button {
46+
-ms-flex-order: -1;
47+
-webkit-order: -1;
48+
order: -1;
49+
}
50+
}
51+
}
4252
}

0 commit comments

Comments
 (0)