Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
Add restricted badge format (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliewongbandue authored Jan 20, 2023
1 parent 511041e commit 0942ddc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/Badge/Badge.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,13 @@ export function format({ $format, href = null }) {
border: 1px solid ${color};
`;
}
case 'restricted': {
return css`
color: ${white};
background-color: ${red(500)};
opacity: 0.7;
`;
}
case 'sponsor':
return basicBadge(green(500));
case 'partner':
Expand Down
1 change: 1 addition & 0 deletions src/components/Badge/Badge.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ type Format =
| 'plus'
| 'producer'
| 'pro'
| 'restricted'
| 'spatial'
| 'sponsor'
| 'staff'
Expand Down

0 comments on commit 0942ddc

Please sign in to comment.