diff --git a/.changeset/calm-friends-carry.md b/.changeset/calm-friends-carry.md new file mode 100644 index 0000000000..cb9f0ea600 --- /dev/null +++ b/.changeset/calm-friends-carry.md @@ -0,0 +1,23 @@ +--- +"@patternfly/elements": major +--- + +``: replaces `` with PatternFly v6 design specs. + +```html + +``` + +**Breaking Changes from v5** + +- Renamed tag from `` to `` +- CSS custom properties renamed from `--pf-v5-c-progress--*` to `--pf-v6-c-progress--*` + +**New features** + +- `accessible-label` attribute for screen reader text via ElementInternals +- `value-text` attribute for custom `aria-valuetext` (finite step displays) +- `truncated` attribute for ellipsis overflow on description +- `hide-status-icon` attribute for tight layouts +- `helper-text` slot for supplementary text below the bar, auto-wired to `aria-describedby` +- v6 design tokens and `light-dark()` support diff --git a/.changeset/fancy-keys-hug.md b/.changeset/fancy-keys-hug.md new file mode 100644 index 0000000000..59c216edc0 --- /dev/null +++ b/.changeset/fancy-keys-hug.md @@ -0,0 +1,5 @@ +--- +"@patternfly/pfe-tools": minor +--- + +Accept `tagPrefix` as an array of strings, supporting repos with multiple element prefixes diff --git a/.changeset/forty-ties-crash.md b/.changeset/forty-ties-crash.md new file mode 100644 index 0000000000..8227a3c8a0 --- /dev/null +++ b/.changeset/forty-ties-crash.md @@ -0,0 +1,20 @@ +--- +"@patternfly/elements": major +--- + +``: replaces `` with PatternFly v6 design specs. + +```html +7 +``` + +**Breaking Changes from v5** + +- Renamed tag from `` to `` +- Removed `number` and `threshold` properties -- badge is now a pure slot container; formatting is an app concern +- CSS custom properties renamed from `--pf-v5-c-badge--*` to `--pf-v6-c-badge--*` + +**New features** + +- `disabled` attribute +- v6 design tokens and `light-dark()` color scheme support diff --git a/.changeset/free-forks-lay.md b/.changeset/free-forks-lay.md new file mode 100644 index 0000000000..2826e80c01 --- /dev/null +++ b/.changeset/free-forks-lay.md @@ -0,0 +1,25 @@ +--- +"@patternfly/elements": major +--- + +``: replaces `` with PatternFly v6 design specs. + +```html +Back to top +``` + +**Breaking Changes from v5** + +- Renamed tag from `` to `` +- CSS custom properties renamed from `--pf-v5-c-back-to-top--*` to `--pf-v6-c-back-to-top--*` +- Removed `icon` and `icon-set` attributes (caret-up icon is now built-in SVG) +- Removed `scroll-distance` attribute (400px threshold, matches React) +- Renamed `label` attribute to `accessible-label` + +**New features** + +- `href` attribute renders as a link for progressive enhancement (works without JS) +- `accessible-label` attribute for screen reader text +- `delegatesFocus` for keyboard accessibility +- `prefers-reduced-motion` support (instant vs smooth scroll) +- v6 design tokens diff --git a/.changeset/humble-cycles-rest.md b/.changeset/humble-cycles-rest.md new file mode 100644 index 0000000000..cba6cd5f5a --- /dev/null +++ b/.changeset/humble-cycles-rest.md @@ -0,0 +1,20 @@ +--- +"@patternfly/elements": major +--- + +✨ Added `` replacing ``. Background image now follows +PatternFly v6 design specs. + +```html + +``` + +** Breaking Changes from v5 ** + +- Renamed tag from `` to `` +- ✨ Added v6 design tokens and RTL support via :dir(rtl) +- ✨ Added `aria-hidden` for screen reader compliance +- CSS custom properties renamed from `--pf-v5-c-background-image--*` to `--pf-v6-c-background-image--*` +- Removed `src-2x`, `src-sm`, `src-sm-2x`, `src-lg` responsive source attributes (use CSS custom properties or media queries instead) +- Removed `filter` boolean attribute +- `src` no longer reflects to attribute diff --git a/.changeset/lucky-gifts-tie.md b/.changeset/lucky-gifts-tie.md new file mode 100644 index 0000000000..126cfe2211 --- /dev/null +++ b/.changeset/lucky-gifts-tie.md @@ -0,0 +1,34 @@ +--- +"@patternfly/elements": major +--- + +Added `` replacing ``. Timestamp now follows +PatternFly v6 design specs. + +```html + + +``` + +**Breaking Changes from v5** + +- `` renamed to `` +- `utc` boolean attribute replaced with `time-zone` string attribute accepting + any IANA timezone identifier (e.g. `time-zone="UTC"`, + `time-zone="America/New_York"`) +- `hour-12` boolean attribute replaced with `hour-cycle` enum attribute + accepting Intl values: `h11`, `h12`, `h23`, `h24` +- `help-text` attribute removed; tooltip styling is a composition pattern + using `` wrapping +- `date` getter now returns ISO 8601 string instead of locale-formatted string +- `display-suffix` no longer auto-set to "UTC" when using UTC timezone; set + `display-suffix="UTC"` explicitly if needed + +**New features** + +- `time-zone` attribute for any IANA timezone, not just UTC +- `hour-cycle` attribute for precise hour format control +- Default slot for custom display content +- v6 design tokens diff --git a/.changeset/sixty-crabs-mate.md b/.changeset/sixty-crabs-mate.md new file mode 100644 index 0000000000..bc957db26a --- /dev/null +++ b/.changeset/sixty-crabs-mate.md @@ -0,0 +1,24 @@ +--- +"@patternfly/elements": major +--- + +``: replaces `` with PatternFly v6 design specs. + +```html +Loading... +``` + +**Breaking Changes from v5** + +- Renamed tag from `` to `` +- CSS custom properties renamed from `--pf-v5-c-spinner--*` to `--pf-v6-c-spinner--*` +- Removed `diameter` attribute (use `--pf-v6-c-spinner--diameter` CSS custom property instead) + +**New features** + +- `inline` attribute to inherit font size for inline display +- `accessible-label` attribute for screen reader text +- `value-text` attribute for progress state description +- `xs` size preset +- ARIA `progressbar` role with `aria-label` and `aria-valuetext` via ElementInternals +- `prefers-reduced-motion` support diff --git a/.changeset/smooth-webs-travel.md b/.changeset/smooth-webs-travel.md new file mode 100644 index 0000000000..a28a19ed96 --- /dev/null +++ b/.changeset/smooth-webs-travel.md @@ -0,0 +1,25 @@ +--- +"@patternfly/elements": major +--- + +``: replaces `` with PatternFly v6 design specs. + +```html + + Info alert: + Info banner content + +``` + +**Breaking Changes from v5** + +- Renamed tag from `` to `` +- `variant` attribute split into separate `color` and `status` attributes +- CSS custom properties renamed from `--pf-v5-c-banner--*` to `--pf-v6-c-banner--*` +- Removed `icon` attribute and `icon` slot (compose icons in default slot) +- Removed `container` and `icon` CSS parts + +**New features** + +- `color` attribute for decorative colors (red, orangered, orange, yellow, green, teal, blue, purple) +- `status` attribute for semantic statuses (success, warning, danger, info, custom) diff --git a/.changeset/social-guests-wish.md b/.changeset/social-guests-wish.md new file mode 100644 index 0000000000..72a2e774e8 --- /dev/null +++ b/.changeset/social-guests-wish.md @@ -0,0 +1,26 @@ +--- +"@patternfly/elements": major +--- + +``: replaces `` with PatternFly v6 design specs. + +```html + +``` + +**Breaking Changes from v5** + +- Renamed tag from `` to `` +- CSS custom properties renamed from `--pf-v5-c-avatar--*` to `--pf-v6-c-avatar--*` +- Replaced `border` attribute with `bordered` boolean attribute +- `alt` attribute no longer defaults to "Avatar image" (defaults to empty string for decorative use) +- `size` attribute no longer defaults to `sm` (renders at default 2.25rem dimensions) +- Removed `dark` attribute +- Removed `load` event + +**New features** + +- `size` attribute with `sm`, `md`, `lg`, `xl` presets +- `bordered` boolean attribute +- `light-dark()` color scheme support for placeholder graphic +- v6 design tokens 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 `