Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
25 changes: 25 additions & 0 deletions .changeset/free-forks-lay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
"@patternfly/elements": major
---

`<pf-v6-back-to-top>`: replaces `<pf-v5-back-to-top>` with PatternFly v6 design specs.

```html
<pf-v6-back-to-top href="#top">Back to top</pf-v6-back-to-top>
```

**Breaking Changes from v5**

- Renamed tag from `<pf-v5-back-to-top>` to `<pf-v6-back-to-top>`
- 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
32 changes: 0 additions & 32 deletions elements/pf-v5-back-to-top/README.md

This file was deleted.

28 changes: 0 additions & 28 deletions elements/pf-v5-back-to-top/demo/always-visible.html

This file was deleted.

43 changes: 0 additions & 43 deletions elements/pf-v5-back-to-top/demo/button-no-text.html

This file was deleted.

52 changes: 0 additions & 52 deletions elements/pf-v5-back-to-top/demo/button.html

This file was deleted.

41 changes: 0 additions & 41 deletions elements/pf-v5-back-to-top/demo/index.html

This file was deleted.

41 changes: 0 additions & 41 deletions elements/pf-v5-back-to-top/demo/label.html

This file was deleted.

41 changes: 0 additions & 41 deletions elements/pf-v5-back-to-top/demo/no-text.html

This file was deleted.

41 changes: 0 additions & 41 deletions elements/pf-v5-back-to-top/demo/scroll-distance.html

This file was deleted.

Loading
Loading