-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Allowing exceptions to elementNearBottom resizing requirement #21016
Comments
My opinion is that there is no point in having a footer if user can never get to it as infinite scroll will keep pushing it down (it is actually annoying if user sees it and wants to tap on something they liked in there but by the time they try to tap it it moved away) The footer should come as the |
Ali has a good point but to allow for more flexibility in designs, I also like the idea of making a change to allow for this. As in the example provided, there is enough delay to allow for the user to choose something from the footer and what also came to mind was b118725560; where having ad placement at the footer for monetization was required, and was preventing the auto resize from happening. To limit the scope of the change and if the example Cathy provided is in the context of the amp-list component then perhaps we can confine this change to just that component. |
I'm fine with giving infinite scroll an exception (it may use the guaranteed But I also agree with @aghassemi that infinite scrollers should never have content below them. It's just evil. |
That's great feedback. So based on waht @aghassemi said about the late-arriving list content pushing down an interactable footer, I don't think we want to actually override I'm not sure if I can express this sufficiently clearly, but based on feedback from @andrewwatterson, I think an ideal UX which we should potentially look at supporting in this scenario looks something like this:
What do people think? |
I think this is a discussion to have with @ampproject/wg-ui-and-a11y. Let's leave this issue open though as that UI proposal still requires an exception to the resize rules. |
To defend my honor, I'd clarify that I don't think this is an ideal UX solution, just one that fits within AliExpress's specific constraints (notably having a long load time between I agree with @aghassemi's point/our existing policy against letting infinite scroll make footers that are basically inaccessible, and don't think that presenting elements (suggested searches, ads, whatever) in between In short, -1 to prioritizing a component like this. |
Closing this issue per above discussion. |
TLDR: can we have exceptions to the no-resizing + show overflow rule here?
amphtml/src/service/resources-impl.js
Lines 1447 to 1463 in 3d331ab
I have what I think is a legitimate use case here based on #14060 (comment) from infinite-scroll, where even though there is valid content in the footer and the bottom of a particular element is in a page, we would still like the element to resize.
As shown in the image, infinite-scroll triggers when the user scrolls to 3 viewports away from the bottom of the list. But due to reasons like slow endpoint or network connection, it is a common occurrence that content of the next fetch has not yet arrived (hence the loading icon is seen) by the time the user reaches the bottom of the page. The current behaviour is that when the fetch comes back with items, we trigger overflow because the bottom of the list is not within 15% of the page bottom. The desired behaviour is that we resize successfully and continue on scrolling.
This is not a problem when there is nothing below the list. However, in some cases, it's possible to have footers of arbitrary length (e.g the business requirement to show an arbitrary number of search terms). I'm wondering can we either create exceptions to the
elementNearBottom_
rule or possibly mark certain footer elements as such and ignore them in the bottom 15% calculation./cc @ampproject/wg-runtime
The text was updated successfully, but these errors were encountered: