Skip to content

Commit

Permalink
Merge pull request #3329 from craftcms/bugfix/13910-statuses-html
Browse files Browse the repository at this point in the history
removed space between the status circle and wording
  • Loading branch information
lukeholder authored Nov 10, 2023
2 parents d6cf88a + 0b61ec5 commit fbd68ad
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/elements/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -2457,7 +2457,7 @@ public function getCustomerLinkHtml(): string
public function getOrderStatusHtml(): string
{
if ($status = $this->getOrderStatus()) {
return '<span class="commerceStatusLabel"><span class="status ' . $status->color . '"></span> ' . $status->name . '</span>';
return '<span class="commerceStatusLabel"><span class="status ' . $status->color . '"></span>' . $status->name . '</span>';
}

return '';
Expand All @@ -2469,10 +2469,10 @@ public function getOrderStatusHtml(): string
public function getPaidStatusHtml(): string
{
return match ($this->getPaidStatus()) {
self::PAID_STATUS_OVERPAID => '<span class="commerceStatusLabel"><span class="status blue"></span> ' . Craft::t('commerce', 'Overpaid') . '</span>',
self::PAID_STATUS_PAID => '<span class="commerceStatusLabel"><span class="status green"></span> ' . Craft::t('commerce', 'Paid') . '</span>',
self::PAID_STATUS_PARTIAL => '<span class="commerceStatusLabel"><span class="status orange"></span> ' . Craft::t('commerce', 'Partial') . '</span>',
self::PAID_STATUS_UNPAID => '<span class="commerceStatusLabel"><span class="status red"></span> ' . Craft::t('commerce', 'Unpaid') . '</span>',
self::PAID_STATUS_OVERPAID => '<span class="commerceStatusLabel"><span class="status blue"></span>' . Craft::t('commerce', 'Overpaid') . '</span>',
self::PAID_STATUS_PAID => '<span class="commerceStatusLabel"><span class="status green"></span>' . Craft::t('commerce', 'Paid') . '</span>',
self::PAID_STATUS_PARTIAL => '<span class="commerceStatusLabel"><span class="status orange"></span>' . Craft::t('commerce', 'Partial') . '</span>',
self::PAID_STATUS_UNPAID => '<span class="commerceStatusLabel"><span class="status red"></span>' . Craft::t('commerce', 'Unpaid') . '</span>',
default => '',
};
}
Expand Down

0 comments on commit fbd68ad

Please sign in to comment.