Add a yellow-outline Badge variant

This commit is contained in:
Sebastian Martinez
2023-12-04 11:59:12 +01:00
parent d00b8f5a1a
commit 3198bbd330
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -3,6 +3,7 @@
| "caution"
| "foreground"
| "background"
| "yellowOutline"
| "neutral"
| "negative"
| "positive"
@@ -46,6 +47,11 @@
color: var(--color-foreground-match-background);
background-color: var(--color-fill-secondary);
}
.yellow-outline {
border: 1px solid var(--color-foreground-yellow);
color: var(--color-foreground-yellow);
background-color: transparent;
}
.negative {
color: var(--color-foreground-match-background);
background-color: var(--color-foreground-red);
@@ -88,6 +94,7 @@
class:small={size === "small"}
class:medium={size === "medium"}
class:caution={variant === "caution"}
class:yellow-outline={variant === "yellowOutline"}
class:background={variant === "background"}
class:foreground={variant === "foreground"}
class:neutral={variant === "neutral"}
+1 -1
View File
@@ -91,7 +91,7 @@
</Link>
</span>
{#if project.visibility && project.visibility.type === "private"}
<Badge variant="caution" size="tiny">
<Badge variant="yellowOutline" size="tiny">
{capitalize(project.visibility.type)}
</Badge>
{/if}