fix: payment errors show in red, not in the green of a success
All checks were successful
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Successful in 2m38s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Publish images (push) Successful in 54s
All checks were successful
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Successful in 2m38s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Publish images (push) Successful in 54s
The payment page's one message line was always green, so "O Mercado Pago recusou o pagamento" looked like good news. Each message now has a tone: an error (a refusal, a form error, a missing field) in red, a changed cart or an expired quote in amber, a created order in green, the rest neutral. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -332,7 +332,11 @@ section+section{border-top:0}
|
||||
#bPagar:disabled{background:#EDEDED;color:#8A8D92}
|
||||
#bMais{height:46px;border-radius:var(--raio2);font-family:"Inter",sans-serif;font-weight:600}
|
||||
.checkout{max-width:760px;margin:20px auto 0}
|
||||
.checkout #checkoutStatus:not(:empty){padding:16px 18px;border-radius:var(--raio);background:var(--verde-fundo);border:1px solid #BFE6CE;color:#14532D;font-size:16.5px}
|
||||
.checkout #checkoutStatus:not(:empty){padding:16px 18px;border-radius:var(--raio);background:#F6F7F8;border:1px solid var(--linha);color:var(--texto2);font-size:16.5px}
|
||||
/* The message's tone (checkout.js): green only for what went right. */
|
||||
.checkout #checkoutStatus[data-tone=ok]{background:var(--verde-fundo);border-color:#BFE6CE;color:#14532D}
|
||||
.checkout #checkoutStatus[data-tone=warn]{background:var(--aviso-fundo);border-color:var(--aviso-linha);color:#5A3A00}
|
||||
.checkout #checkoutStatus[data-tone=error]{background:#FDECEA;border-color:#F3C2BC;color:#8C2416}
|
||||
#checkoutActions{margin-top:12px}
|
||||
/* Only our own fields: Mercado Pago's card form (its instalment radios) keeps its own styles. */
|
||||
#checkoutActions .pixBox input{height:44px;border-radius:var(--raio2);border:1px solid #D6D6D6;padding:0 12px}
|
||||
|
||||
Reference in New Issue
Block a user