Skip to content

Backport footer responsive #15889

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 32 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
acf52ec
Product placeholder image resize issue #13636
chirag-wagento Jun 4, 2018
e7fc759
Merge pull request #1 from chirag-wagento/2.1-develop-PR-port-15758
chirag-wagento Jun 4, 2018
0b5167e
Merge pull request #3 from chirag-wagento/2.1-develop-PR-port-15789
chirag-wagento Jun 5, 2018
682a932
Merge pull request #5 from chirag-wagento/2.1-develop-PR-port-15790
chirag-wagento Jun 5, 2018
3c88933
Removed unused class from forms less file.
chirag-wagento Jun 5, 2018
72d8d08
Merge pull request #7 from chirag-wagento/2.1-develop-PR-port-15791
chirag-wagento Jun 5, 2018
c080b15
Added row_id to the flat action indexer so the value isn't set to 0 f…
lewisvoncken Jan 31, 2018
ac0e159
Moved the indexAll after the product save in the Indexer Product Flat…
lewisvoncken May 5, 2018
515dbae
Merge pull request #9 from chirag-wagento/2.1-develop-PR-port-15010
chirag-wagento Jun 5, 2018
24cea81
fix tets fixture and mark return processor as @api
seruymt Apr 24, 2018
a21c213
Merge pull request #12 from chirag-wagento/2.1-develop-PR-port-14842
chirag-wagento Jun 5, 2018
10fd645
Merge pull request #15 from chirag-wagento/2.1-develop-PR-port-14805
chirag-wagento Jun 5, 2018
391eb00
Merge remote-tracking branch 'upstream/2.1-develop' into 2.1-develop
chirag-wagento Jun 6, 2018
b9c030a
Backport Footer responsive issue.
chirag-wagento Jun 6, 2018
9f549a3
Backport placeholder image issue.
chirag-wagento Jun 6, 2018
81d8e52
PHPDoc and type hints
May 28, 2018
29cd4e2
Merge pull request #20 from chirag-wagento/2.1-develop-PR-port-15558
chirag-wagento Jun 7, 2018
fa35876
Wrong Last orders amount on dashboard #15660
ankurvr Jun 1, 2018
a5990ec
Merge pull request #24 from chirag-wagento/2.1-develop-PR-port-15661
chirag-wagento Jun 10, 2018
f34c978
small refactoring to better code readability
likemusic Jun 11, 2018
a7fc075
Merge pull request #28 from chirag-wagento/2.1-develop-PR-port-16010
chirag-wagento Jun 12, 2018
324ee50
added new variables
Karlasa Jun 11, 2018
41b4775
added new primary button variables
Karlasa Jun 11, 2018
f530c43
Merge pull request #31 from chirag-wagento/2.1-develop-PR-port-16012
chirag-wagento Jun 12, 2018
c87e8af
checkout page cart icon color fix
Karlasa Jun 11, 2018
a1a79b4
Merge pull request #33 from chirag-wagento/2.1-develop-PR-port-16002
chirag-wagento Jun 12, 2018
7c3ce72
fix for dropdown toggle icon
Karlasa Jun 11, 2018
b5e4c23
Merge pull request #36 from chirag-wagento/2.1-develop-PR-port-15991
chirag-wagento Jun 12, 2018
7517bbc
Merge remote-tracking branch 'upstream/2.1-develop' into 2.1-develop
chirag-wagento Jun 12, 2018
28e922c
Merge branch '2.1-develop' of github.com:chirag-wagento/magento2 into…
chirag-wagento Jun 12, 2018
9d21ae1
Merge remote-tracking branch 'origin/2.1-develop' into backport-foote…
chirag-wagento Jun 12, 2018
50d8a71
Merge remote-tracking branch 'origin/backport-placeholder-image' into…
chirag-wagento Jun 12, 2018
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
19 changes: 11 additions & 8 deletions app/code/Magento/Backend/Block/Widget/Form/Element/Dependence.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,17 @@ protected function _toHtml()
if (!$this->_depends) {
return '';
}
return '<script>
require(["mage/adminhtml/form"], function(){
new FormElementDependenceController(' .
$this->_getDependsJson() .
($this->_configOptions ? ', ' .
$this->_jsonEncoder->encode(
$this->_configOptions
) : '') . '); });</script>';

$dependsJson = $this->_getDependsJson();
$configOptions = $this->_configOptions ? $this->_jsonEncoder->encode($this->_configOptions) : null;
$configOptionsStr = $configOptions ? ', ' . $configOptions : '';
$paramsStr = $dependsJson . $configOptionsStr;

return "<script>
require(['mage/adminhtml/form'], function(){
new FormElementDependenceController({$paramsStr});
});
</script>";
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,7 @@ public function __construct(
$this->_storeManager = $storeManager;
$this->_currencyLocator = $currencyLocator;
$this->_localeCurrency = $localeCurrency;
$defaultBaseCurrencyCode = $this->_scopeConfig->getValue(
\Magento\Directory\Model\Currency::XML_PATH_CURRENCY_BASE,
'default'
);
$defaultBaseCurrencyCode = $currencyLocator->getDefaultCurrency($this->_request);
$this->_defaultBaseCurrency = $currencyFactory->create()->load($defaultBaseCurrencyCode);
}

Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Catalog/Block/Adminhtml/Category/Tree.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ public function getBreadcrumbsJavascript($path, $javascriptVarName)
*
* @param Node|array $node
* @param int $level
* @return string
* @return array
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
* @SuppressWarnings(PHPMD.NPathComplexity)
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function (node, e) {
*
* @param \Magento\Framework\Data\Tree\Node|array $node
* @param int $level
* @return string
* @return array
*/
protected function _getNodeJson($node, $level = 0)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Element extends \Magento\Backend\Block\Widget\Form\Renderer\Fieldset\Eleme
/**
* Retrieve data object related with form
*
* @return \Magento\Catalog\Model\Product || \Magento\Catalog\Model\Category
* @return \Magento\Catalog\Model\Product|\Magento\Catalog\Model\Category
*/
public function getDataObject()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ protected function _prepareColumns()
'type' => 'options',
'options' => ['1' => __('Yes'), '0' => __('No')],
'align' => 'center'
],
'is_user_defined'
]
);

$this->_eventManager->dispatch('product_attribute_grid_build', ['grid' => $this]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function getSelectorOptions()
*
* @param string $labelPart
* @param int $templateId
* @return \Magento\Catalog\Model\ResourceModel\Product\Attribute\Collection
* @return array
*/
public function getSuggestedAttributes($labelPart, $templateId = null)
{
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Catalog/Block/Adminhtml/Rss/Grid/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function isRssAllowed()
}

/**
* @return string
* @return array
*/
protected function getLinkParams()
{
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Catalog/Block/Category/Rss/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function getLabel()
}

/**
* @return string
* @return array
*/
protected function getLinkParams()
{
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Catalog/Block/Product/AbstractProduct.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public function getAddToCompareUrl()
* Gets minimal sales quantity
*
* @param \Magento\Catalog\Model\Product $product
* @return int|null
* @return float|null
*/
public function getMinimalQty($product)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public function getPrice($price, $includingTax = null)
* Returns price converted to current currency rate
*
* @param float $price
* @return float
* @return float|string
*/
public function getCurrencyPrice($price)
{
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Catalog/Block/Rss/Product/Special.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ protected function _construct()
}

/**
* @return string
* @return array
*/
public function getRssData()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ public function write($storeId, $productId, $valueFieldSuffix = '')

if (!empty($updateData)) {
$updateData += ['entity_id' => $productId];
$updateData += ['row_id' => $productId];
$updateFields = [];
foreach ($updateData as $key => $value) {
$updateFields[$key] = $key;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

/**
* Class ReturnProcessor
*
* @api
*/
class ReturnProcessor
{
Expand Down
8 changes: 2 additions & 6 deletions app/code/Magento/Wishlist/CustomerData/Wishlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,8 @@ protected function getImageData($product)
$template = $helper->getFrame()
? 'Magento_Catalog/product/image'
: 'Magento_Catalog/product/image_with_borders';

try {
$imagesize = $helper->getResizedImageInfo();
} catch (NotLoadInfoImageException $exception) {
$imagesize = [$helper->getWidth(), $helper->getHeight()];
}

$imagesize = [$helper->getWidth(), $helper->getHeight()];

$width = $helper->getFrame()
? $helper->getWidth()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@
.action {
&.showcart {
&:before {
.lib-css(color, @primary__color);
.lib-css(color, @button__color);
}

&:hover:before {
.lib-css(color, @button__hover__color);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1401,7 +1401,7 @@
&.active {
> .title {
.lib-icon-font-symbol(
@_icon-font-content: @icon-prev,
@_icon-font-content: @icon-up,
@_icon-font-position: after
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,29 @@
// _____________________________________________

.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__m) {
html,
body {
height: 100%; // Stretch screen area for sticky footer
}

header,
main,
footer {
flex-shrink: 0;
}

.page-wrapper {
.lib-vendor-prefix-display(flex);
.lib-vendor-prefix-flex-direction(column);
align-items: stretch;
-webkit-align-items: stretch;
min-height: 100%; // Stretch content area for sticky footer
.page-main {
flex-grow: 1;
-webkit-flex-grow: 1;
}
}

.customer-name,
.customer-welcome + .authorization-link {
display: none;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,13 @@ public function testProductUpdate()
$this->_processor->getIndexer()->isScheduled(),
'Indexer is in scheduled mode when turned to update on save mode'
);
$this->_processor->reindexAll();

$this->_product->load(1);
$this->_product->setName('Updated Product');
$this->_product->save();

$this->_processor->reindexAll();

$category = $categoryFactory->create()->load(9);
$layer = $listProduct->getLayer();
$layer->setCurrentCategory($category);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

use Magento\Sales\Model\Order\ShipmentFactory;

require 'order.php';

$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
Expand Down Expand Up @@ -36,4 +39,10 @@

$order->setIsInProcess(true);

$transaction->addObject($invoice)->addObject($order)->save();
$items = [];
foreach ($order->getItems() as $orderItem) {
$items[$orderItem->getId()] = $orderItem->getQtyOrdered();
}
$shipment = $objectManager->get(ShipmentFactory::class)->create($order, $items);

$transaction->addObject($invoice)->addObject($shipment)->addObject($order)->save();
6 changes: 6 additions & 0 deletions lib/web/css/source/lib/_buttons.less
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,9 @@
// ---------------------------------------------

.lib-button-primary(
@_button-font-family: @button-primary__font-family,
@_button-font-size: @button-primary__font-size,
@_button-font-weight: @button-primary__font-weight,
@_button-line-height: @button-primary__line-height,
@_button-width: @button-primary__width,
@_button-margin: @button-primary__margin,
Expand All @@ -300,6 +303,9 @@
@_button-gradient-direction: @button-primary__gradient-direction
) {
.lib-button(
@_button-font-family: @_button-font-family,
@_button-font-size: @_button-font-size,
@_button-font-weight: @_button-font-weight,
@_button-line-height: @_button-line-height,
@_button-width: @_button-width,
@_button-margin: @_button-margin,
Expand Down
2 changes: 0 additions & 2 deletions lib/web/css/source/lib/_forms.less
Original file line number Diff line number Diff line change
Expand Up @@ -465,11 +465,9 @@
.lib-css(margin, @_margin);
.lib-css(padding, @_padding);
letter-spacing: -.31em;
//word-spacing: -.43em;

> * {
letter-spacing: normal;
//word-spacing: normal;
}

> .legend {
Expand Down
3 changes: 3 additions & 0 deletions lib/web/css/source/lib/variables/_buttons.less
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
@button__active__gradient-color-end: false;

// Primary button
@button-primary__font-family: @button__font-family;
@button-primary__font-size: @button__font-size;
@button-primary__font-weight: @button__font-weight;
@button-primary__line-height: false;
@button-primary__width: false;
@button-primary__margin: false;
Expand Down