Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions samples/interactions/chat/features/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ export class ChatOverview {
id: '4',
text:
`
Thank you for your patience. It seems that the issue is the name of the CSS part. Here is the fixed code:
Thank you for your patience. The background should be applied using the \`--ig-avatar-background\` CSS variable on the \`igc-avatar\` host element. Here is the fixed code:
\`\`\`css
igc-avatar::part(base) {
--size: 60px;
color: var(--ig-success-500-contrast);
background: var(--ig-success-500);
border-radius: 20px;
igc-avatar {
--ig-avatar-size: 60px;
--ig-avatar-color: var(--ig-success-500-contrast);
--ig-avatar-background: var(--ig-success-500);
--ig-avatar-border-radius: 20px;
}
\`\`\`
`,
Expand Down
10 changes: 5 additions & 5 deletions samples/layouts/avatar/styling/src/AvatarStyle.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
igc-avatar::part(base) {
--size: 60px;
color: var(--ig-success-500-contrast);
background: var(--ig-success-500);;
border-radius: 20px;
igc-avatar {
--ig-avatar-size: 60px;
--ig-avatar-color: var(--ig-success-500-contrast);
--ig-avatar-background: var(--ig-success-500);
--ig-avatar-border-radius: 20px;
}
Loading