mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Add styles for headers and subHeaders
This commit is contained in:
parent
fa5eab7b90
commit
81be640472
3 changed files with 18 additions and 0 deletions
|
@ -10,4 +10,18 @@
|
|||
.ppcp-paylater-configurator-publishButton {
|
||||
display:none;
|
||||
}
|
||||
.ppcp-paylater-configurator-header {
|
||||
font-size: 1.3em;
|
||||
color: #1d2327;
|
||||
margin: 1em 0;
|
||||
font-weight: 600;
|
||||
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
|
||||
line-height: 1.3;
|
||||
}
|
||||
.ppcp-paylater-configurator-subheader {
|
||||
font-size: 14px;
|
||||
line-height: 1.5;
|
||||
color: #3c434a;
|
||||
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,6 +25,8 @@ document.addEventListener( 'DOMContentLoaded', () => {
|
|||
placements: ['cart', 'checkout', 'product', 'category', 'homepage', 'custom_placement'],
|
||||
styleOverrides: {
|
||||
button: publishButtonClassName,
|
||||
header: PcpPayLaterConfigurator.headerClassName,
|
||||
subheader: PcpPayLaterConfigurator.subheaderClassName
|
||||
},
|
||||
onSave: data => {
|
||||
fetch(PcpPayLaterConfigurator.ajax.save_config.endpoint, {
|
||||
|
|
|
@ -115,6 +115,8 @@ class PayLaterConfiguratorModule implements ModuleInterface {
|
|||
'merchantClientId' => $settings->get( 'client_id' ),
|
||||
'partnerClientId' => $c->get( 'api.partner_merchant_id' ),
|
||||
'publishButtonClassName' => 'ppcp-paylater-configurator-publishButton',
|
||||
'headerClassName' => 'ppcp-paylater-configurator-header',
|
||||
'subheaderClassName' => 'ppcp-paylater-configurator-subheader',
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue