Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introducing consistency in colors for deposits across pages #8382

Merged
merged 12 commits into from
Oct 30, 2024
Merged
4 changes: 4 additions & 0 deletions changelog/fix-7761-align-deposit-colors
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fix

Introducing consistency in colors for deposits across pages
4 changes: 2 additions & 2 deletions client/components/deposit-status-chip/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import type { DepositStatus } from 'wcpay/types/deposits';
*/
const mappings: Record< DepositStatus, ChipType > = {
pending: 'warning',
in_transit: 'success',
in_transit: 'primary',
paid: 'success',
failed: 'alert',
canceled: 'alert',
canceled: 'light',
};

/**
Expand Down
24 changes: 15 additions & 9 deletions client/deposits/details/style.scss
Original file line number Diff line number Diff line change
@@ -1,24 +1,30 @@
.wcpay-deposit-overview {
.woocommerce-order-status {
margin-bottom: 4px;
white-space: nowrap;
}

.woocommerce-order-status__indicator {
width: 0.85em;
height: 0.85em;

// is-canceled uses the default gray color.

&.is-paid {
background: $studio-green-50;
border-color: $studio-green-5;
background: $wp-green-30;
border-color: $wp-green-5;
}
&.is-pending {
background: $wp-yellow-20;
border-color: $wp-yellow-5;
}
&.is-pending,
&.is-in_transit {
background: $studio-yellow-30;
border-color: $studio-yellow-5;
background: $wp-blue-30;
border-color: $wp-blue-5;
}
&.is-failed {
background: $studio-red-50;
border-color: $studio-red-5;
background: $wp-red-50;
border-color: $wp-red-10;
}
}

Expand All @@ -34,11 +40,11 @@
}

.wcpay-deposit-fee {
color: $studio-red-50;
color: $wp-red-70;
}

.wcpay-deposit-net {
color: $studio-green-30;
color: $wp-green-70;
}

.wcpay-deposit-automatic ul {
Expand Down
Loading