Skip to content

Commit 4e652d0

Browse files
committed
fix: add theming compatibility
1 parent ad23d2b commit 4e652d0

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

package/src/components/ui/Avatar/AvatarStack.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export const UserAvatarStack = ({
111111

112112
const useUserAvatarStackStyles = () => {
113113
const {
114-
theme: { semantics },
114+
theme: { avatarStack, semantics },
115115
} = useTheme();
116116

117117
return useMemo(
@@ -121,9 +121,10 @@ const useUserAvatarStackStyles = () => {
121121
borderWidth: 2,
122122
borderColor: semantics.borderCoreInverse,
123123
borderRadius: primitives.radiusMax,
124+
...avatarStack.userAvatarWrapper,
124125
},
125126
}),
126-
[semantics.borderCoreInverse],
127+
[avatarStack.userAvatarWrapper, semantics.borderCoreInverse],
127128
);
128129
};
129130

package/src/contexts/themeContext/utils/theme.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ export type Theme = {
145145
presenceIndicator: CircleProps;
146146
presenceIndicatorContainer: ViewStyle;
147147
};
148+
avatarStack: {
149+
userAvatarWrapper: ViewStyle;
150+
};
148151
bottomSheetModal: {
149152
container: ViewStyle;
150153
contentContainer: ViewStyle;
@@ -1095,6 +1098,9 @@ export const defaultTheme: Theme = {
10951098
},
10961099
presenceIndicatorContainer: {},
10971100
},
1101+
avatarStack: {
1102+
userAvatarWrapper: {},
1103+
},
10981104
bottomSheetModal: {
10991105
container: {},
11001106
contentContainer: {},

0 commit comments

Comments
 (0)