diff --git a/src/app/components/user-profile/PowerChip.tsx b/src/app/components/user-profile/PowerChip.tsx
index d1e4dbfa2..ba6440b2c 100644
--- a/src/app/components/user-profile/PowerChip.tsx
+++ b/src/app/components/user-profile/PowerChip.tsx
@@ -43,6 +43,7 @@ import { useRoomPermissions } from '$hooks/useRoomPermissions';
import { useMemberPowerCompare } from '$hooks/useMemberPowerCompare';
import { CutoutCard } from '$components/cutout-card';
import { PowerColorBadge, PowerIcon } from '$components/power';
+import * as css from './styles.css';
type SelfDemoteAlertProps = {
power: number;
@@ -144,7 +145,19 @@ function SharedPowerAlert({ power, onCancel, onChange }: SharedPowerAlertProps)
);
}
-export function PowerChip({ userId }: { userId: string }) {
+export function PowerChip({
+ userId,
+ backgroundColor,
+ innerColor,
+ cardColor,
+ textColor,
+}: {
+ userId: string;
+ backgroundColor?: string;
+ innerColor?: string;
+ cardColor?: string;
+ textColor?: string;
+}) {
const mx = useMatrixClient();
const room = useRoom();
const space = useSpaceOptionally();
@@ -239,7 +252,11 @@ export function PowerChip({ userId }: { userId: string }) {
{error && (
@@ -268,6 +285,7 @@ export function PowerChip({ userId }: { userId: string }) {
radii="300"
aria-disabled={changing || !canChangePowers || !canAssignPower}
aria-pressed={selected}
+ style={{ backgroundColor: cardColor, color: textColor }}
before={}
after={
powerTagIconSrc ? (
@@ -285,13 +303,14 @@ export function PowerChip({ userId }: { userId: string }) {
);
})}
-
-
+
+