Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(back-to-top): pf-back-to-top element #2589

Merged
merged 52 commits into from
Dec 6, 2023
Merged

Conversation

zeroedin
Copy link
Collaborator

@zeroedin zeroedin commented Sep 5, 2023

What I did

  1. Added <pf-back-to-top> element

Todo

  • Determine accessibility improvements A href attribute and using a <a> in shadowdom is warranted as expected. Can still use button version but there is caveat of owning accessibility in implementation, such as setting focus on element scrolled to.
  • Figure out improvements for how a user hooks up element to "returning to top". PFv4 doesn't make assumptions on how the button is hooked up. We may opt for a href attribute and use a link instead of a button when present, and definitely have to add a event when button is clicked otherwise for implementors to hook into. See above, href implementation
  • Improve documentation
  • Add tests
  • Add changeset

Testing Instructions

  1. View Deploy Preview

Notes to Reviewers

@changeset-bot
Copy link

changeset-bot bot commented Sep 5, 2023

🦋 Changeset detected

Latest commit: 16a5dba

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@patternfly/elements Minor
@patternfly/pfe-tools Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the work in progress POC / Not ready for review label Sep 5, 2023
@github-actions github-actions bot added demo Updating demo pages doc functionality Functionality, typically pertaining to the JavaScript. styles An issue or PR pertaining only to CSS/Sass tests Related to testing labels Sep 5, 2023
@netlify
Copy link

netlify bot commented Sep 5, 2023

Deploy Preview for patternfly-elements ready!

Name Link
🔨 Latest commit 1f9acf9
😎 Deploy Preview https://deploy-preview-2589--patternfly-elements.netlify.app/

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions github-actions bot added the AT passed Automated testing has passed label Sep 5, 2023
@zeroedin zeroedin marked this pull request as ready for review September 13, 2023 17:58
@markcaron markcaron removed the doc label Sep 15, 2023
@zeroedin zeroedin self-assigned this Sep 19, 2023
@zeroedin zeroedin added this to the PatternFly Elements 2.x milestone Sep 19, 2023
@zeroedin zeroedin removed the work in progress POC / Not ready for review label Sep 25, 2023
elements/pf-back-to-top/docs/pf-back-to-top.md Outdated Show resolved Hide resolved
elements/pf-back-to-top/docs/pf-back-to-top.md Outdated Show resolved Hide resolved
elements/pf-back-to-top/docs/pf-back-to-top.md Outdated Show resolved Hide resolved
elements/pf-back-to-top/docs/pf-back-to-top.md Outdated Show resolved Hide resolved
elements/pf-back-to-top/test/pf-back-to-top.spec.ts Outdated Show resolved Hide resolved
elements/pf-back-to-top/test/pf-back-to-top.spec.ts Outdated Show resolved Hide resolved
elements/pf-back-to-top/test/pf-back-to-top.spec.ts Outdated Show resolved Hide resolved
elements/pf-back-to-top/test/pf-back-to-top.spec.ts Outdated Show resolved Hide resolved
@zeroedin zeroedin enabled auto-merge December 4, 2023 20:04
@zeroedin zeroedin disabled auto-merge December 4, 2023 20:04
@bennypowers bennypowers enabled auto-merge (squash) December 5, 2023 06:10
@bennypowers bennypowers requested a review from nikkimk December 5, 2023 06:15
@bennypowers bennypowers dismissed nikkimk’s stale review December 6, 2023 08:49

on the assumption that Nikki's earlier notes were addressed by Steven's patches, merging now to enable us to release 2.5.0 on time.

@bennypowers bennypowers merged commit 22d7536 into main Dec 6, 2023
11 of 13 checks passed
@bennypowers bennypowers deleted the feat/pf-back-to-top branch December 6, 2023 08:49
@bennypowers
Copy link
Member

Merging ahead of 2.5.0. @nikkimk @hellogreg please open new issues for anything that comes up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AT passed Automated testing has passed demo Updating demo pages doc functionality Functionality, typically pertaining to the JavaScript. ready to merge styles An issue or PR pertaining only to CSS/Sass tests Related to testing tools Development and build tools
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[1:1]: pf-back-to-top
4 participants