Skip to content

Commit

Permalink
🔃 [EngCom] Public Pull Requests - 2.2-develop
Browse files Browse the repository at this point in the history
Accepted Public Pull Requests:
 - #21250: [Backport] Fixed Luma theme my account Order status tabs 21070 (by @suryakant-krish)
 - #21245: [Backport] Fixed #17861  Customer Name Prefix shows white space when extra separator is addes (by @mage2pratik)


Fixed GitHub Issues:
 - #21070: Luma theme my account Order Information status tabs break in tablet view (reported by @abrarpathan19) has been fixed in #21250 by @suryakant-krish in 2.2-develop branch
   Related commits:
     1. da3a606
     2. 6acd8a4

 - #17861: Customer Name Prefix shows white space when extra separator is addes. (reported by @sskulkarni) has been fixed in #21245 by @mage2pratik in 2.2-develop branch
   Related commits:
     1. 77c780d
     2. 5eeecac
     3. 69cf6ce
  • Loading branch information
magento-engcom-team authored Feb 16, 2019
2 parents e12277e + c71d7be commit 4bb2bd0
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
14 changes: 10 additions & 4 deletions app/code/Magento/Customer/Model/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
use Magento\Config\Model\Config\Source\Nooptreq as NooptreqSource;
use Magento\Customer\Helper\Address as AddressHelper;
use Magento\Framework\Escaper;
use Magento\Store\Api\Data\StoreInterface;

/**
* Customer Options.
*/
class Options
{
/**
Expand Down Expand Up @@ -38,7 +42,7 @@ public function __construct(
/**
* Retrieve name prefix dropdown options
*
* @param null $store
* @param null|string|bool|int|StoreInterface $store
* @return array|bool
*/
public function getNamePrefixOptions($store = null)
Expand All @@ -52,7 +56,7 @@ public function getNamePrefixOptions($store = null)
/**
* Retrieve name suffix dropdown options
*
* @param null $store
* @param null|string|bool|int|StoreInterface $store
* @return array|bool
*/
public function getNameSuffixOptions($store = null)
Expand All @@ -64,7 +68,9 @@ public function getNameSuffixOptions($store = null)
}

/**
* @param $options
* Unserialize and clear name prefix or suffix options.
*
* @param string $options
* @param bool $isOptional
* @return array|bool
*
Expand All @@ -91,7 +97,7 @@ private function prepareNamePrefixSuffixOptions($options, $isOptional = false)
return false;
}
$result = [];
$options = explode(';', $options);
$options = array_filter(explode(';', $options));
foreach ($options as $value) {
$value = $this->escaper->escapeHtml(trim($value));
$result[$value] = $value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -555,13 +555,13 @@
margin: 0 @tab-control__margin-right 0 0;

a {
padding: @tab-control__padding-top @tab-control__padding-right;
padding: @tab-control__padding-top @indent__base;
}

strong {
border-bottom: 0;
margin-bottom: -1px;
padding: @tab-control__padding-top @tab-control__padding-right @tab-control__padding-bottom + 1 @tab-control__padding-left;
padding: @tab-control__padding-top @indent__base @tab-control__padding-bottom + 1 @indent__base;
}
}
}
Expand Down Expand Up @@ -687,3 +687,19 @@
}
}
}

.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__l) {
.order-links {
.item {
margin: 0 @tab-control__margin-right 0 0;

a {
padding: @tab-control__padding-top @tab-control__padding-right;
}

strong {
padding: @tab-control__padding-top @tab-control__padding-right @tab-control__padding-bottom + 1 @tab-control__padding-left;
}
}
}
}

0 comments on commit 4bb2bd0

Please sign in to comment.