style: pos checkout button color (#45890)

style: pos checkout button color
This commit is contained in:
Diptanil Saha
2025-02-13 00:09:21 +05:30
committed by GitHub
parent 5f554e1ec3
commit 72f8fc8a7b
2 changed files with 4 additions and 4 deletions

View File

@@ -769,7 +769,7 @@
.submit-order-btn { .submit-order-btn {
@extend .primary-action; @extend .primary-action;
background-color: var(--blue-500); background-color: var(--primary-color);
color: white; color: white;
} }

View File

@@ -184,7 +184,7 @@ erpnext.PointOfSale.ItemCart = class {
}); });
this.$component.on("click", ".checkout-btn", async function () { this.$component.on("click", ".checkout-btn", async function () {
if ($(this).attr("style").indexOf("--blue-500") == -1) return; if ($(this).attr("style").indexOf("--primary-color") == -1) return;
await me.events.checkout(); await me.events.checkout();
me.toggle_checkout_btn(false); me.toggle_checkout_btn(false);
@@ -702,12 +702,12 @@ erpnext.PointOfSale.ItemCart = class {
if (toggle) { if (toggle) {
this.$add_discount_elem.css("display", "flex"); this.$add_discount_elem.css("display", "flex");
this.$cart_container.find(".checkout-btn").css({ this.$cart_container.find(".checkout-btn").css({
"background-color": "var(--blue-500)", "background-color": "var(--primary-color)",
}); });
} else { } else {
this.$add_discount_elem.css("display", "none"); this.$add_discount_elem.css("display", "none");
this.$cart_container.find(".checkout-btn").css({ this.$cart_container.find(".checkout-btn").css({
"background-color": "var(--blue-200)", "background-color": "var(--gray-200)",
}); });
} }
} }