diff --git a/.changeset/swift-teams-notice.md b/.changeset/swift-teams-notice.md new file mode 100644 index 0000000000..4236c0f852 --- /dev/null +++ b/.changeset/swift-teams-notice.md @@ -0,0 +1,20 @@ +--- +"@patternfly/elements": major +--- + +✨ Added `` replacing ``. Switch now follows +PatternFly v6 design specs. + +```html +Wi-Fi +``` + +**Breaking Changes from v5** + +- Renamed tag from `` to `` +- Removed `data-state="on|off"` label toggling — labels are now static, matching React and WCAG APG switch pattern +- CSS custom properties renamed from `--pf-v5-c-switch--*` to `--pf-v6-c-switch--*` +- Fixed form association (FACE): submits `"on"` when checked, reverts on form reset +- ✨ Added cancelable `change` event: call `preventDefault()` to reject a toggle +- ✨ Added external `