Skip to content

Commit 7a24e59

Browse files
authored
Merge 68e925a into 8fedd86
2 parents 8fedd86 + 68e925a commit 7a24e59

24 files changed

Lines changed: 481 additions & 562 deletions

.changeset/social-guests-wish.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
"@patternfly/elements": major
3+
---
4+
5+
✨ Added `<pf-v6-avatar>` replacing `<pf-v5-avatar>`. Avatar now follows
6+
PatternFly v6 design specs.
7+
8+
```html
9+
<pf-v6-avatar src="./photo.jpg" alt="User name"></pf-v6-avatar>
10+
```
11+
12+
**Breaking Changes from v5 **
13+
14+
- Renamed tag from `<pf-v5-avatar>` to `<pf-v6-avatar>`
15+
- ✨ Added `size` attribute with `sm`, `md`, `lg`, `xl` presets
16+
- ✨ Added `bordered` boolean attribute
17+
- ✨ Added `color-scheme` support via `light-dark()` for placeholder graphic
18+
- ✨ Added v6 design tokens
19+
- CSS custom properties renamed from `--pf-v5-c-avatar--*` to `--pf-v6-c-avatar--*`
20+
- Replaced `border` attribute with `bordered` boolean attribute
21+
- `alt` attribute no longer defaults to "Avatar image" (defaults to empty string)
22+
- `size` attribute no longer defaults to `sm` (defaults to `unset`, renders at default
23+
dimensions)
24+
- Removed `dark` attribute

elements/pf-v5-avatar/README.md

Lines changed: 0 additions & 31 deletions
This file was deleted.

elements/pf-v5-avatar/demo/bordered.html

Lines changed: 0 additions & 50 deletions
This file was deleted.

elements/pf-v5-avatar/demo/dark-border.html

Lines changed: 0 additions & 49 deletions
This file was deleted.

elements/pf-v5-avatar/demo/dark-variant.html

Lines changed: 0 additions & 69 deletions
This file was deleted.

elements/pf-v5-avatar/demo/index.html

Lines changed: 0 additions & 13 deletions
This file was deleted.

elements/pf-v5-avatar/demo/sizes.html

Lines changed: 0 additions & 49 deletions
This file was deleted.

elements/pf-v5-avatar/docs/CHANGELOG.old.md

Lines changed: 0 additions & 52 deletions
This file was deleted.

elements/pf-v5-avatar/docs/pf-v5-avatar.md

Lines changed: 0 additions & 28 deletions
This file was deleted.
-5.84 KB
Binary file not shown.

0 commit comments

Comments
 (0)