-
Notifications
You must be signed in to change notification settings - Fork 18
IBX-10932: Changed back to top btn hover effect & text visibility #1766
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR changes the back-to-top button's text display behavior from scroll-position-based to hover-based interaction. Instead of showing the button text only when scrolled to the bottom of the page, the text now appears when users hover over the button.
Key changes:
- Replaced scroll-based text visibility logic with CSS hover effect
- Removed JavaScript code that calculated scroll position to toggle text visibility
- Simplified function naming to reflect new behavior
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/bundle/Resources/public/scss/_back-to-top.scss | Added hover state to show title text; removed scroll-based visibility modifier class |
| src/bundle/Resources/public/js/scripts/admin.back.to.top.js | Removed scroll position calculation logic and text visibility toggling; renamed function to reflect simplified behavior |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
QA Approved on DXP Commerce 4.6.x-dev |
|



Related PRs:
Description:
For QA:
Documentation: