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
4 changes: 2 additions & 2 deletions docs/angular/src/content/en/components/avatar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ Let's enhance our avatar by making it circular and bigger in size.
<igx-avatar size="medium" initials="JS" shape="circle"></igx-avatar>
```

We can also change the background through the `background` property or set a color on the initials through the `color` property.
We can also change the background using the `--ig-avatar-background` CSS variable or set a color on the initials through the `color` property.

```scss
// avatar.component.scss

igx-avatar {
background: #e41c77;
--ig-avatar-background: #e41c77;
color: #000000;
}

Expand Down
4 changes: 2 additions & 2 deletions docs/angular/src/content/jp/components/avatar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@ Ignite UI for Angular Avatar コンポーネントには、3 つの形状 (正
<igx-avatar size="medium" initials="JS" shape="circle"></igx-avatar>
```

`background` プロパティを使用して背景の色を変更できます。また、`color` プロパティを使用してイニシャルの色を設定します。
`--ig-avatar-background` CSS 変数を使用して背景の色を変更できます。また、`color` プロパティを使用してイニシャルの色を設定します。

```scss
// avatar.component.scss

igx-avatar {
background: #e41c77;
--ig-avatar-background: #e41c77;
color: #000000;
}

Expand Down
5 changes: 4 additions & 1 deletion docs/xplat/src/content/en/components/layouts/avatar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,13 @@ The <ApiLink type="Avatar" /> component exposes several CSS parts, giving you fu
| `icon` | The icon wrapper of the avatar. |

```css
igc-avatar {
--ig-avatar-background: var(--ig-success-500);
}

igc-avatar::part(base) {
--size: 60px;
color: var(--ig-success-500-contrast);
background: var(--ig-success-500);;
border-radius: 20px;
}
```
Expand Down
5 changes: 4 additions & 1 deletion docs/xplat/src/content/jp/components/layouts/avatar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,13 @@ igc-avatar {
| `icon` | アバターのアイコン ラッパー。 |

```css
igc-avatar {
--ig-avatar-background: var(--ig-success-500);
}

igc-avatar::part(base) {
--size: 60px;
color: var(--ig-success-500-contrast);
background: var(--ig-success-500);;
border-radius: 20px;
}
```
Expand Down
Loading