File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments