Skip to content

Commit

Permalink
A4A: Add Woo label on licenses that are for WooCommerce products.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich Collier committed May 23, 2024
1 parent a2a916a commit 6542a25
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,16 @@ export default function LicensePreview( {
} ) }
>
<div>
<span className="license-preview__product">{ productTitle }</span>
<span className="license-preview__product">
{ licenseKey.startsWith( 'woocommerce-' ) && (
<span>
<Badge className="license-preview__product-woo-badge" type="info">
{ translate( 'Woo' ) }
</Badge>
</span>
) }
{ productTitle }
</span>
</div>

<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@
display: inline;
}
}

&-woo-badge {
background: #7f54b3;
color: var(--studio-white);
margin-right: 0.5rem;
}
}

.license-preview__label {
Expand Down

0 comments on commit 6542a25

Please sign in to comment.