Skip to content

Commit 2c5eb57

Browse files
authored
Merge 24d734a into edcb9b3
2 parents edcb9b3 + 24d734a commit 2c5eb57

27 files changed

Lines changed: 547 additions & 539 deletions

.changeset/social-guests-wish.md

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

docs/main.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import '@rhds/elements/rh-footer/rh-footer-universal.js';
22
import { PfV5Icon } from '@patternfly/elements/pf-v5-icon/pf-v5-icon.js';
33
import '@patternfly/elements/pf-v5-accordion/pf-v5-accordion.js';
44
import '@patternfly/elements/pf-v5-alert/pf-v5-alert.js';
5-
import '@patternfly/elements/pf-v5-avatar/pf-v5-avatar.js';
5+
import '@patternfly/elements/pf-v6-avatar/pf-v6-avatar.js';
66
import '@patternfly/elements/pf-v5-back-to-top/pf-v5-back-to-top.js';
77
import '@patternfly/elements/pf-v6-background-image/pf-v6-background-image.js';
88
import '@patternfly/elements/pf-v5-badge/pf-v5-badge.js';

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.

0 commit comments

Comments
 (0)