Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
ce76106
feat(avatar): add pf-v6-avatar element
zeroedin May 8, 2026
4f20b21
fix(avatar): apply review fixes
zeroedin May 8, 2026
3a48a5e
docs(avatar): align demos to react
zeroedin May 8, 2026
029d18d
fix(avatar): correct css vars
zeroedin May 8, 2026
47ea912
fix(avatar): readd typing
zeroedin May 8, 2026
c76f5d8
Merge branch 'staging/pfv6' into feat/v6-avatar
zeroedin May 12, 2026
fbbd713
chore: remove pf-v5-avatar
zeroedin May 13, 2026
eef757f
fix(avatar): correct jsdoc to cem documentation comments
zeroedin May 13, 2026
7c1346f
chore: add changeset
zeroedin May 13, 2026
32a5166
Merge branch 'staging/pfv6' into feat/v6-avatar
zeroedin May 14, 2026
1eac98a
docs(avatar): add README
zeroedin May 14, 2026
f257006
docs(avatar): improve README documentation
zeroedin May 19, 2026
68e925a
test(avatar): improve tests
zeroedin May 19, 2026
d1139f7
docs(avatar): add missing docs markdown and screenshot
zeroedin May 19, 2026
9285164
test(avatar): add missing e2e test file
zeroedin May 19, 2026
474a506
Merge remote-tracking branch 'origin/staging/pfv6' into feat/v6-avatar
bennypowers May 27, 2026
fc814e7
chore(avatar): update readme
zeroedin Jun 12, 2026
5a55db9
docs: update avatar import reference
zeroedin Jun 12, 2026
b7837d9
Merge branch 'staging/pfv6' into feat/v6-avatar
bennypowers Jun 15, 2026
0b1fa19
docs: jsdoc
bennypowers Jun 15, 2026
fa1669e
fix!: remove load event
bennypowers Jun 15, 2026
24d734a
perf: simplify template
bennypowers Jun 15, 2026
22e860c
test: replace load element with nextFrame
bennypowers Jun 15, 2026
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
26 changes: 26 additions & 0 deletions .changeset/social-guests-wish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
"@patternfly/elements": major
---

`<pf-v6-avatar>`: replaces `<pf-v5-avatar>` with PatternFly v6 design specs.

```html
<pf-v6-avatar src="./photo.jpg" alt="User name"></pf-v6-avatar>
```

**Breaking Changes from v5**

- Renamed tag from `<pf-v5-avatar>` to `<pf-v6-avatar>`
- CSS custom properties renamed from `--pf-v5-c-avatar--*` to `--pf-v6-c-avatar--*`
- Replaced `border` attribute with `bordered` boolean attribute
- `alt` attribute no longer defaults to "Avatar image" (defaults to empty string for decorative use)
- `size` attribute no longer defaults to `sm` (renders at default 2.25rem dimensions)
- Removed `dark` attribute
- Removed `load` event

**New features**

- `size` attribute with `sm`, `md`, `lg`, `xl` presets
- `bordered` boolean attribute
- `light-dark()` color scheme support for placeholder graphic
- v6 design tokens
2 changes: 1 addition & 1 deletion docs/main.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import '@rhds/elements/rh-footer/rh-footer-universal.js';
import { PfV5Icon } from '@patternfly/elements/pf-v5-icon/pf-v5-icon.js';
import '@patternfly/elements/pf-v5-accordion/pf-v5-accordion.js';
import '@patternfly/elements/pf-v5-alert/pf-v5-alert.js';
import '@patternfly/elements/pf-v5-avatar/pf-v5-avatar.js';
import '@patternfly/elements/pf-v6-avatar/pf-v6-avatar.js';
import '@patternfly/elements/pf-v5-back-to-top/pf-v5-back-to-top.js';
import '@patternfly/elements/pf-v6-background-image/pf-v6-background-image.js';
import '@patternfly/elements/pf-v5-badge/pf-v5-badge.js';
Expand Down
31 changes: 0 additions & 31 deletions elements/pf-v5-avatar/README.md

This file was deleted.

50 changes: 0 additions & 50 deletions elements/pf-v5-avatar/demo/bordered.html

This file was deleted.

49 changes: 0 additions & 49 deletions elements/pf-v5-avatar/demo/dark-border.html

This file was deleted.

69 changes: 0 additions & 69 deletions elements/pf-v5-avatar/demo/dark-variant.html

This file was deleted.

13 changes: 0 additions & 13 deletions elements/pf-v5-avatar/demo/index.html

This file was deleted.

49 changes: 0 additions & 49 deletions elements/pf-v5-avatar/demo/sizes.html

This file was deleted.

52 changes: 0 additions & 52 deletions elements/pf-v5-avatar/docs/CHANGELOG.old.md

This file was deleted.

28 changes: 0 additions & 28 deletions elements/pf-v5-avatar/docs/pf-v5-avatar.md

This file was deleted.

Binary file removed elements/pf-v5-avatar/docs/screenshot.png
Binary file not shown.
Loading
Loading