Skip to content

Commit aca9103

Browse files
author
Stanislav Idolov
committed
ENGCOM-1702: [Forwardport] Moved css from media #TODO #15536
1 parent 46f8fcf commit aca9103

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,10 @@
332332
.widget.block {
333333
.lib-css(margin, @indent__base 0);
334334
}
335-
.links .widget.block { margin: 0; }
335+
336+
.links .widget.block {
337+
margin: 0;
338+
}
336339
}
337340

338341
.no-display:extend(.abs-no-display all) {

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(File $phpcsFile, $stackPtr)
100100
*/
101101
private function validatePropertiesSorting(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);

0 commit comments

Comments
 (0)