Skip to content

Commit

Permalink
add transparent background to contact card
Browse files Browse the repository at this point in the history
  • Loading branch information
anemne authored and petterhh committed Dec 12, 2024
1 parent 0ea6a32 commit b7cd5d4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/employeeCard/EmployeeCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default function EmployeeCard({
export function EmployeeCardSkeleton({
background = "light",
}: {
background?: "light" | "dark";
background?: "light" | "dark" | "transparent";
}) {
const backgroundClass =
background === "dark" ? styles["employeeImage--dark"] : "";
Expand Down
2 changes: 1 addition & 1 deletion src/components/sections/contact-box/ContactSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export type ContactSelectorProps = {
contactPoints: Promise<EmployeeAndMetadata[]>;
employeesPageSlug: string;
language: string;
background?: "dark" | "light";
background?: "dark" | "light" | "transparent";
};

export default function ContactSelector({
Expand Down
4 changes: 3 additions & 1 deletion src/components/tag/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ function getBackgroundClass(backgroundColor: string) {
switch (backgroundColor) {
case "light":
return "";
case "transparent":
return "";
case "dark":
return styles["tag--bgDark"];
case "violet":
Expand All @@ -29,7 +31,7 @@ function getBackgroundClass(backgroundColor: string) {

type TagProps = {
active?: boolean;
background?: "light" | "dark" | "violet";
background?: "light" | "dark" | "violet" | "transparent";
text: string;
} & TagInner;

Expand Down

0 comments on commit b7cd5d4

Please sign in to comment.