style(design): FINDING-002 — replace hardcoded color on triangle indicator
The billing/shipping diff triangle used inline style="color:#6b7280" which doesn't adapt to dark mode. Now uses a CSS class with var(--text-muted) for proper theming. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -453,6 +453,12 @@ input[type="checkbox"] {
|
|||||||
.fc-dark { color: var(--text-secondary); }
|
.fc-dark { color: var(--text-secondary); }
|
||||||
.fc-orange { color: var(--accent); }
|
.fc-orange { color: var(--accent); }
|
||||||
|
|
||||||
|
/* ── Client diff indicator (billing ≠ shipping) ──── */
|
||||||
|
.client-diff-indicator {
|
||||||
|
color: var(--text-muted);
|
||||||
|
font-size: 0.65rem;
|
||||||
|
}
|
||||||
|
|
||||||
/* ── Log viewer (dark theme — keep as-is) ────────── */
|
/* ── Log viewer (dark theme — keep as-is) ────────── */
|
||||||
.log-viewer {
|
.log-viewer {
|
||||||
font-family: var(--font-data);
|
font-family: var(--font-data);
|
||||||
|
|||||||
@@ -465,7 +465,7 @@ function renderClientCell(order) {
|
|||||||
const shipping = (order.shipping_name || '').trim();
|
const shipping = (order.shipping_name || '').trim();
|
||||||
const isDiff = display !== shipping && shipping;
|
const isDiff = display !== shipping && shipping;
|
||||||
if (isDiff) {
|
if (isDiff) {
|
||||||
return `<td class="tooltip-cont fw-bold" data-tooltip="Livrare: ${escHtml(shipping)}">${escHtml(display)} <sup style="color:#6b7280;font-size:0.65rem">▲</sup></td>`;
|
return `<td class="tooltip-cont fw-bold" data-tooltip="Livrare: ${escHtml(shipping)}">${escHtml(display)} <sup class="client-diff-indicator">▲</sup></td>`;
|
||||||
}
|
}
|
||||||
return `<td class="fw-bold">${escHtml(display || billing || '\u2014')}</td>`;
|
return `<td class="fw-bold">${escHtml(display || billing || '\u2014')}</td>`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user