Skip to content
Open
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
a398aea
feat(badge): add pf-v6-badge element
zeroedin May 8, 2026
4b6f728
fix(badge): apply review fixes
zeroedin May 8, 2026
4253b92
test(badge): move test to element directory
zeroedin May 8, 2026
3a4af73
docs(badge): correct index demo to simplest
zeroedin May 8, 2026
534723c
Merge branch 'staging/pfv6' into feat/v6-badge
zeroedin May 12, 2026
e3aaa03
chore: remove pf-v5-badge
zeroedin May 13, 2026
c9a849a
chore: replace pf-v5-badge refs with pf-v6-badge refs
zeroedin May 13, 2026
c836abf
fix(badge): correct jsdoc to cem format documentation
zeroedin May 13, 2026
54dd0e8
chore: add changeset
zeroedin May 13, 2026
12748aa
Merge branch 'staging/pfv6' into feat/v6-badge
zeroedin May 14, 2026
deb4a0f
docs(badge): add README.md
zeroedin May 14, 2026
28fb72c
fix(badge): improve language around screen reader text usage
zeroedin May 19, 2026
ebbecc3
docs(badge): add missing docs markdown and screenshot
zeroedin May 19, 2026
df74de8
test(badge): add missing e2e test
zeroedin May 19, 2026
1989002
Merge remote-tracking branch 'origin/staging/pfv6' into feat/v6-badge
bennypowers May 27, 2026
2f34841
fix(badge): remove `number` and `threshold` properties
zeroedin Jun 11, 2026
2a99967
docs(badge): update docs to reflect api change
zeroedin Jun 11, 2026
702b199
chore(badge): update changeset
zeroedin Jun 11, 2026
4f7469e
docs(badge): reference pf-v6-badge in docs, button, and chip demos
zeroedin Jun 11, 2026
f156736
test(avatar): update test badge reference
zeroedin Jun 11, 2026
7546025
fix(chip): update reference to pf-v6-badge
zeroedin Jun 11, 2026
3dfa608
fix(select): update css to reference pf-v6-badge
zeroedin Jun 11, 2026
b6005f8
docs(badge): update readme
zeroedin Jun 11, 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
19 changes: 19 additions & 0 deletions .changeset/forty-ties-crash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
"@patternfly/elements": major
---

✨ Added `<pf-v6-badge>` replacing `<pf-v5-badge>`. Badge now follows
PatternFly v6 design specs.

```html
<pf-v6-badge state="unread">7</pf-v6-badge>
```

** Breaking Changes from v5 **

- Renamed tag from `<pf-v5-badge>` to `<pf-v6-badge>`
- Removed `number` and `threshold` properties — badge is now a pure slot
container; formatting is an app concern
- ✨ Added `disabled` attribute
- ✨ Added v6 design tokens and `color-scheme` support via `light-dark()`
- CSS custom properties renamed from `--pf-v5-c-badge--*` to `--pf-v6-c-badge--*`
2 changes: 1 addition & 1 deletion docs/main.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import '@patternfly/elements/pf-v5-alert/pf-v5-alert.js';
import '@patternfly/elements/pf-v5-avatar/pf-v5-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';
import '@patternfly/elements/pf-v6-badge/pf-v6-badge.js';
import '@patternfly/elements/pf-v5-banner/pf-v5-banner.js';
import '@patternfly/elements/pf-v5-button/pf-v5-button.js';
import '@patternfly/elements/pf-v5-card/pf-v5-card.js';
Expand Down
2 changes: 1 addition & 1 deletion elements/pf-v5-avatar/test/pf-avatar.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe('<pf-v5-avatar>', function() {

it('should upgrade', async function() {
const el = await createFixture(html`<pf-v5-avatar></pf-v5-avatar>`);
expect(el, 'pf-v5-badge should be an instance of PfV5Avatar')
expect(el, 'pf-v6-badge should be an instance of PfV5Avatar')
.to.be.an.instanceOf(customElements.get('pf-v5-avatar'))
.and
.to.be.an.instanceOf(PfV5Avatar);
Expand Down
57 changes: 0 additions & 57 deletions elements/pf-v5-badge/README.md

This file was deleted.

12 changes: 0 additions & 12 deletions elements/pf-v5-badge/demo/index.html

This file was deleted.

15 changes: 0 additions & 15 deletions elements/pf-v5-badge/demo/read.html

This file was deleted.

16 changes: 0 additions & 16 deletions elements/pf-v5-badge/demo/threshold.html

This file was deleted.

15 changes: 0 additions & 15 deletions elements/pf-v5-badge/demo/unread.html

This file was deleted.

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

This file was deleted.

43 changes: 0 additions & 43 deletions elements/pf-v5-badge/docs/pf-v5-badge.md

This file was deleted.

Binary file removed elements/pf-v5-badge/docs/screenshot.png
Binary file not shown.
51 changes: 0 additions & 51 deletions elements/pf-v5-badge/pf-v5-badge.css

This file was deleted.

53 changes: 0 additions & 53 deletions elements/pf-v5-badge/pf-v5-badge.ts

This file was deleted.

Loading
Loading