mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 13:44:42 +08:00
Merge pull request #2386 from woocommerce/PCP-3330-fastlane-improve-button-styling-to-better-match-theme-defaults-e-g-on-place-order-button
Improve Place Order button styling (3330)
This commit is contained in:
commit
d2e2f76f59
2 changed files with 4 additions and 9 deletions
|
@ -980,7 +980,6 @@ document.querySelector("#payment").before(document.querySelector(".ppcp-messages
|
|||
*/
|
||||
public function dcc_renderer() {
|
||||
|
||||
$id = 'ppcp-hosted-fields';
|
||||
if ( ! $this->can_render_dcc() ) {
|
||||
return;
|
||||
}
|
||||
|
@ -993,12 +992,11 @@ document.querySelector("#payment").before(document.querySelector(".ppcp-messages
|
|||
// phpcs:enable WordPress.WP.I18n.TextDomainMismatch
|
||||
|
||||
printf(
|
||||
'<div id="%1$s" style="display:none;">
|
||||
<button type="submit" class="button alt ppcp-dcc-order-button" style="display: none;">%2$s</button>
|
||||
'<div id="ppcp-hosted-fields" style="display:none;">
|
||||
<button id="place_order" type="submit" class="button alt ppcp-dcc-order-button wp-element-button" style="display: none;">%1$s</button>
|
||||
</div>
|
||||
<div id="payments-sdk__contingency-lightbox"></div>
|
||||
<style id="ppcp-hide-dcc">.payment_method_ppcp-credit-card-gateway {display:none;}</style>',
|
||||
esc_attr( $id ),
|
||||
esc_html( $label )
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue