mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
add styles per context
This commit is contained in:
parent
e24fc0d7ab
commit
5de78e1aab
4 changed files with 383 additions and 16 deletions
|
@ -15,7 +15,7 @@ class Renderer {
|
|||
return;
|
||||
}
|
||||
|
||||
const style = this.defaultConfig.button.style;
|
||||
const style = wrapper === this.defaultConfig.button.wrapper ? this.defaultConfig.button.style : this.defaultConfig.button.mini_cart_style;
|
||||
paypal.Buttons({
|
||||
style,
|
||||
...contextConfig,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue