Needs work
Project:
Drupal core
Version:
main
Component:
Olivero theme
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
18 Nov 2021 at 20:20 UTC
Updated:
11 Dec 2024 at 02:36 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
kostyashupenkoThat's a very good idea! @mherchel what do you think? For sure if/after validation it needs design first
Comment #3
mherchelI'm definitely not opposed to it
Comment #4
kostyashupenko@jwitkowski79 probably you can quickly suggest something so we can moving forward :)
Not sure if it should be separate issue or we can do everything right here
Comment #8
gauravvvv commentedI have added back to top button. Please review
Comment #9
smustgrave commentedThink we should have screenshots added to the issue summary.
Also seems like a feature that should have some kind of test coverage.
Comment #10
zenimagine commentedHi, I just tested the patch, it works well, but needs some improvement.
When the page is at the top, the back button should disappear and appear only when you start scrolling the page.
Comment #11
zenimagine commentedComment #15
ahsannazir commentedComment #16
kanchan bhogade commentedHi
I've tested MR 8872 on Drupal 11
The MR is applied cleanly...
For no page scroll, there is No back-to-top button as expected, and when the page scrolls, the back-to-top button appears.
Attaching SS for reference
RTBC+1
Comment #17
smustgrave commentedSeems all the tags are still needed. Also forgot issue summary update from before
Comment #18
zenimagine commentedhi, I found the website below which has a button to go up to the top of the page. It's great because when you scroll the page, it displays around the arrow the length of the page. Can you add an animation for the length of the page (a circle like on the website below):
https://planb.network/courses
Comment #19
ahsannazir commentedComment #20
chandansha commentedI've tested MR 8872 with the help of View live preview link.
I verify the button is working and progress bar show around the button.
i attached the video for refference.
I move it to RTBC.
THANKS!!
Comment #21
mherchelLeft some general comments. We should also move this to a single directory component. It's a perfect use case.
Comment #22
zenimagine commentedNice work. For the animation, how will you handle the infinite scrolling pages? Maybe by disabling the feature?
Comment #24
mherchelI created a new branch using SDC and CSS only (using scroll animations).
Right now the scroll stuff only works on Chromium. The main functionality works on all browsers.
That being said, I think we might still want to use Intersection Observer so that the show/hide works also works on all browsers.
Comment #25
quietone commentedTrying for a better title. On scanning I kept thinking this was a regression.
Comment #26
mherchelThe
3250234-back-to-top-mikes-sdc-branchabove is ready for review. I added a JS fallback for older browsers and fixed some linting.Note the scroll progress only works in Chromium as progressive enhancement. I don't want to add a scroll event, which has the potential to slow down the browser.
@ehsann_95 I see you're still putting in a bit of effort on the other branch. You're welcome to continue to do so, but there's still quite of work to be done. You're welcome to review the new MR, which should be a bit closer to complete.
Comment #27
ahsannazir commented@mherchel . I will move my branch to hidden. I'll review the MR and see what can i do to move it furhter. Thanks!
Comment #29
hritick commentedI have tested the Merge Request !8932 and after testing following are my observations.
I have applied the MR as a patch and it applied with no errors and applied successfully.
After applying the patch, it adds the "back to top" button at the bottom right of the screen for both the browsers , firefox and chrome.
For chrome, while scrolling the screen around the button a progress bar was shown and it is also interactive while scrolling the page but this feature is not available for firefox.
One thing I would like to point out which is that, after clicking the button for scrolling back to top and when the page is at the top the button does not disappear at its own, we have to again click back on the screen and then it disappears.
Another thing, I am not sure whether to count it as an issue or an suggestion, the button is appearing after a certain amount of scrolling which is according to me could be reduced by a small margin.
Overall the button is working smoothly. Attaching some screen recordings for reference.
Thanks and regards.
Comment #30
mherchelThanks for the review. We also have some failing tests for some reason.
Yeah, the scroll indicator uses a browser feature that's not yet available to FF. My thought is that this is not necessary for the functionality, so I consider it progressive enhancement.
Yeah, this is an accessibility requirement (WCAG 2.4.7 Focus Visible), which states as long as a control as focus, it must remain visible. I wonder if we should shift focus to something else.
Comment #31
hritick commentedhey @mherchel,
If we ignore this as of now , rest is good and ready to move forward.
RTBC+
Thanks and regards.
Comment #32
Anonymous (not verified) commentedtpham1023 changed the visibility of the branch 3250234-back-to-top-mikes-sdc-branch to hidden.
Comment #33
Anonymous (not verified) commentedtpham1023 changed the visibility of the branch 3250234-back-to-top-mikes-sdc-branch to active.
Comment #35
ahsannazir commentedThe pipeline is failing due to PHP Unit Functional tests are failing
Comment #36
anish.a commentedRemoving Needs Screenshots