Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit ba1ff18

Browse files
🔃 [EngCom] Public Pull Requests - 2.1-develop
Accepted Public Pull Requests: - magento/magento2#15725: [Backport] Updated font-size variable and standardize #ToDo UI (by @vgelani) - magento/magento2#15724: [Backport] Moved css from media #TODO (by @vgelani) - magento/magento2#15736: [Backwardport] Refactor javascript code of button split widget (by @vijay-wagento) - magento/magento2#15739: [Backport] fix: support multiple minisearch widget instances (by @vijay-wagento) - magento/magento2#15719: [Backport 2.1] Fixed return type of wishlist's getImageData in DocBlock (by @rogyar) - magento/magento2#15716: [BACKPORT 2.1 #15695] Fixed a couple of typos (by @dverkade) - magento/magento2#15803: [Backport] Remove double semicolon from the style sheets. (by @vijay-wagento) - magento/magento2#15807: [Backport] [Code improvement] (by @hitesh-wagento) - magento/magento2#15810: [Backport] fix: support multiple minisearch widget instances (by @DanielRuf) - magento/magento2#15805: [Backport] Make necessary space. #5 (by @chirag-wagento) Fixed GitHub Issues: - magento/magento2#15354: Refactor javascript code of button split widget call js component (reported by @amittiwari024) has been fixed in magento/magento2#15736 by @vijay-wagento in 2.1-develop branch Related commits: 1. 02453f6
2 parents 79613c0 + cf548b5 commit ba1ff18

File tree

13 files changed

+42
-31
lines changed

13 files changed

+42
-31
lines changed

app/code/Magento/Backend/view/adminhtml/templates/widget/button/split.phtml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@
4141
<?php endif; ?>
4242
</div>
4343

44-
<script>
45-
require(['jquery'], function($){
46-
$('.actions-split')
47-
.on('click.splitDefault', '.action-default', function() {
48-
$(this).siblings('.dropdown-menu').find('.item-default').trigger('click');
49-
});
50-
});
44+
<script type="text/x-magento-init">
45+
{
46+
".actions-split": {
47+
"Magento_Ui/js/grid/controls/button/split": {}
48+
}
49+
}
5150
</script>
51+

app/code/Magento/Sales/Block/Adminhtml/Order/Create/Sidebar/AbstractSidebar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function canDisplay()
6969
}
7070

7171
/**
72-
* Retrieve disply item qty availablity
72+
* Retrieve display item qty availability
7373
*
7474
* @return false
7575
*/

app/code/Magento/Search/view/frontend/web/form-mini.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ define([
5151
this.autoComplete = $(this.options.destinationSelector);
5252
this.searchForm = $(this.options.formSelector);
5353
this.submitBtn = this.searchForm.find(this.options.submitBtn)[0];
54-
this.searchLabel = $(this.options.searchLabel);
54+
this.searchLabel = this.searchForm.find(this.options.searchLabel);
5555
this.isExpandable = this.options.isExpandable;
5656

5757
_.bindAll(this, '_onKeyDown', '_onPropertyChange', '_onSubmit');

app/code/Magento/Ui/view/base/web/js/form/components/fieldset.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,14 @@ define([
109109
* @returns {Group} Chainable.
110110
*/
111111
_setClasses: function () {
112-
var addtional = this.additionalClasses,
112+
var additional = this.additionalClasses,
113113
classes;
114114

115-
if (_.isString(addtional)) {
116-
addtional = this.additionalClasses.split(' ');
115+
if (_.isString(additional)) {
116+
additional = this.additionalClasses.split(' ');
117117
classes = this.additionalClasses = {};
118118

119-
addtional.forEach(function (name) {
119+
additional.forEach(function (name) {
120120
classes[name] = true;
121121
}, this);
122122
}

app/code/Magento/Ui/view/base/web/js/form/components/group.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ define([
5454
* @returns {Group} Chainable.
5555
*/
5656
_setClasses: function () {
57-
var addtional = this.additionalClasses,
57+
var additional = this.additionalClasses,
5858
classes;
5959

60-
if (_.isString(addtional)) {
61-
addtional = this.additionalClasses.split(' ');
60+
if (_.isString(additional)) {
61+
additional = this.additionalClasses.split(' ');
6262
classes = this.additionalClasses = {};
6363

64-
addtional.forEach(function (name) {
64+
additional.forEach(function (name) {
6565
classes[name] = true;
6666
}, this);
6767
}

app/code/Magento/Wishlist/CustomerData/Wishlist.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright © 2013-2018 Magento, Inc. All rights reserved.
3+
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
66
namespace Magento\Wishlist\CustomerData;
@@ -142,7 +142,7 @@ protected function getItemData(\Magento\Wishlist\Model\Item $wishlistItem)
142142
* Retrieve product image data
143143
*
144144
* @param \Magento\Catalog\Model\Product $product
145-
* @return \Magento\Catalog\Block\Product\Image
145+
* @return array
146146
* @SuppressWarnings(PHPMD.NPathComplexity)
147147
*/
148148
protected function getImageData($product)

app/design/adminhtml/Magento/backend/web/app/setup/styles/less/lib/_buttons.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@
9999
background-color: transparent;
100100
border: none;
101101
color: @link__color;
102-
font-family: @btn__base__font-size;
103-
font-size: 1.5rem; // ToDo UI: Check font-size and standardize
102+
font-family: @font-family__base;
103+
font-size: @base__font-size;
104104

105105
&:hover,
106106
&:active,

app/design/frontend/Magento/luma/Magento_Catalog/web/css/source/module/_listings.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
// _____________________________________________
2626

2727
& when (@media-common = true) {
28+
2829
// Product Lists
2930
.products {
3031
margin: @indent__l 0;

app/design/frontend/Magento/luma/Magento_Checkout/web/css/source/module/checkout/_shipping.less

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@
296296
}
297297
}
298298
}
299+
299300
.opc-wrapper {
300301
.form-login,
301302
.form-shipping-address {
@@ -307,6 +308,7 @@
307308
padding-bottom: @indent__base;
308309
}
309310
}
311+
310312
.table-checkout-shipping-method {
311313
width: auto;
312314
}
@@ -346,6 +348,7 @@
346348
}
347349
}
348350
}
351+
349352
.table-checkout-shipping-method {
350353
min-width: 500px;
351354
}

app/design/frontend/Magento/luma/Magento_Theme/web/css/source/_module.less

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,16 @@
6262
// Common
6363
// _____________________________________________
6464

65-
& when (@media-common = true) {
66-
body {
65+
.page-wrapper {
66+
.ie9 & {
6767
.lib-css(background-color, @page__background-color);
68+
min-height: 0;
6869
}
70+
}
6971

70-
// ToDo UI: move it directly to .page-wrapper (now it doesn't appear in mediaquery cuz of size of css)
71-
.page-wrapper {
72-
.ie9 & {
73-
.lib-css(background-color, @page__background-color);
74-
min-height: 0;
75-
}
72+
& when (@media-common = true) {
73+
body {
74+
.lib-css(background-color, @page__background-color);
7675
}
7776

7877
//

dev/tests/integration/testsuite/Magento/Framework/View/_files/Magento/ModuleA/view/adminhtml/product/product.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
overflow: hidden;
1414
padding: 5px 6px 3px;
1515
margin-left: 12px;
16-
color: #7a7976;;
16+
color: #7a7976;
1717
}
1818

1919
[class^=" catalog-product-"] .page-actions .action-back:hover,

dev/tests/static/framework/Magento/Sniffs/Less/PropertiesSortingSniff.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@ public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
100100
*/
101101
private function validatePropertiesSorting(PHP_CodeSniffer_File $phpcsFile, $stackPtr, array $properties)
102102
{
103+
// Fix needed for cases when incorrect properties passed for validation due to bug in PHP tokens.
104+
$symbolsForSkip = ['(', 'block'];
105+
$properties = array_filter(
106+
$properties,
107+
function ($var) use ($symbolsForSkip) {
108+
return !in_array($var, $symbolsForSkip);
109+
}
110+
);
103111

104112
$originalProperties = $properties;
105113
sort($properties);

lib/web/extjs/resources/css/ytheme-magento.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
background:url(../images/magento/loading_bg.gif) no-repeat #eae2ca;
1616
padding:85px 15px 15px 15px;
1717
font-size:14px;
18-
font-weight:bold;;
18+
font-weight:bold;
1919
color:#611B06;
2020
width:206px;
2121
text-align:center;

0 commit comments

Comments
 (0)