mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 12:19:12 +00:00
fix: pos checkout button color on dark mode (#45967)
This commit is contained in:
@@ -526,8 +526,7 @@
|
|||||||
|
|
||||||
> .checkout-btn {
|
> .checkout-btn {
|
||||||
@extend .primary-action;
|
@extend .primary-action;
|
||||||
background-color: var(--blue-200);
|
background-color: var(--control-bg);
|
||||||
color: white;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
> .edit-cart-btn {
|
> .edit-cart-btn {
|
||||||
@@ -769,8 +768,8 @@
|
|||||||
|
|
||||||
.submit-order-btn {
|
.submit-order-btn {
|
||||||
@extend .primary-action;
|
@extend .primary-action;
|
||||||
background-color: var(--primary-color);
|
background-color: var(--btn-primary);
|
||||||
color: white;
|
color: var(--neutral);
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-label {
|
.section-label {
|
||||||
|
|||||||
@@ -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("--primary-color") == -1) return;
|
if ($(this).attr("style").indexOf("--btn-primary") == -1) return;
|
||||||
|
|
||||||
await me.events.checkout();
|
await me.events.checkout();
|
||||||
me.toggle_checkout_btn(false);
|
me.toggle_checkout_btn(false);
|
||||||
@@ -702,12 +702,14 @@ 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(--primary-color)",
|
"background-color": "var(--btn-primary)",
|
||||||
|
color: "var(--neutral)",
|
||||||
});
|
});
|
||||||
} 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(--gray-200)",
|
"background-color": "var(--control-bg)",
|
||||||
|
color: "",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user