Skip to content

Commit

Permalink
Merge pull request #2104 from woocommerce/PCP-2807-pay-later-messagin…
Browse files Browse the repository at this point in the history
…g-configurator-improvements

Pay later messaging configurator improvements (2807)
  • Loading branch information
Dinamiko authored Mar 18, 2024
2 parents c3f8076 + 9d7bee9 commit bc7baa8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

hr {
margin-right: 16px;
border-top-color: rgb(84, 93, 104);
border-top-color: #B1B7BD;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ private function for_location( Settings $settings, string $location ): array {

if ( in_array( $location, array( 'shop', 'home' ), true ) ) {
$config = array(
'layout' => 'flex',
'color' => $this->get_or_default( $settings, "pay_later_{$location}_message_flex_color", 'black', array( 'black', 'blue', 'white', 'white-no-border' ) ),
'ratio' => $this->get_or_default( $settings, "pay_later_{$location}_message_flex_ratio", '8x1', array( '8x1', '20x1' ) ),
'layout' => $this->get_or_default( $settings, "pay_later_{$location}_message_layout", 'flex' ),
'color' => $this->get_or_default( $settings, "pay_later_{$location}_message_flex_color", 'black' ),
'ratio' => $this->get_or_default( $settings, "pay_later_{$location}_message_flex_ratio", '8x1' ),
);
} elseif ( $location !== 'woocommerceBlock' ) {
$config = array(
'layout' => 'text',
'layout' => $this->get_or_default( $settings, "pay_later_{$location}_message_layout", 'text' ),
'logo-position' => $this->get_or_default( $settings, "pay_later_{$location}_message_position", 'left' ),
'logo-type' => $this->get_or_default( $settings, "pay_later_{$location}_message_logo", 'inline' ),
'text-color' => $this->get_or_default( $settings, "pay_later_{$location}_message_color", 'black' ),
Expand Down

0 comments on commit bc7baa8

Please sign in to comment.