Skip to content

Commit 3e6bec4

Browse files
committed
chore(switch): add changeset
1 parent a4c2432 commit 3e6bec4

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.changeset/swift-teams-notice.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
"@patternfly/elements": major
3+
---
4+
5+
✨ Added `<pf-v6-switch>` replacing `<pf-v5-switch>`. Switch now follows
6+
PatternFly v6 design specs.
7+
8+
```html
9+
<pf-v6-switch checked>Wi-Fi</pf-v6-switch>
10+
```
11+
12+
**Breaking Changes from v5**
13+
14+
- Renamed tag from `<pf-v5-switch>` to `<pf-v6-switch>`
15+
- Removed `data-state="on|off"` label toggling — labels are now static, matching React and WCAG APG switch pattern
16+
- CSS custom properties renamed from `--pf-v5-c-switch--*` to `--pf-v6-c-switch--*`
17+
- Fixed form association (FACE): submits `"on"` when checked, reverts on form reset
18+
- ✨ Added cancelable `change` event: call `preventDefault()` to reject a toggle
19+
- ✨ Added external `<label for="id">` support
20+
- ✨ Added `reversed` attribute for reversed label/toggle layout

0 commit comments

Comments
 (0)