Skip to content

Commit

Permalink
fix styling of free and included tiers
Browse files Browse the repository at this point in the history
  • Loading branch information
abotic committed Feb 18, 2025
1 parent e03ac93 commit 5ec66c2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
7 changes: 6 additions & 1 deletion client/components/theme-tier/theme-tier-badge/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,13 @@
}
}

.theme-tier-included-label {
.theme-tier-free-included-label {
border-radius: 4px;
font-family: $sans;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: $font-body-extra-small;
}

.theme-tier-badge-tooltip,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@ import { useTranslate } from 'i18n-calypso';
export default function ThemeTierFreeBadge() {
const translate = useTranslate();

return <Badge type="info">{ translate( 'Free' ) }</Badge>;
return (
<Badge type="info" className="theme-tier-free-included-label">
{ translate( 'Free' ) }
</Badge>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default function ThemeTierIncludedBadge() {
const translate = useTranslate();

return (
<Badge type="info" className="theme-tier-included-label">
<Badge type="info" className="theme-tier-free-included-label">
{ translate( 'Included with plan' ) }
</Badge>
);
Expand Down

0 comments on commit 5ec66c2

Please sign in to comment.