-
Notifications
You must be signed in to change notification settings - Fork 271
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(ui5-dynamic-page): footer no longer takes space when hidden #7904
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.
As we now introduce a scroll container we need to move the snapOnScroll handler to the new scroll DOM ref and in the handler we may need to adapt the logic to use the properties of the new scroll container (e.g scrollTop).
Maybe after we merge that we can move on with snapOnScroll logic refactoring |
* test: do not merge * feat(ui5-dynamic-page): poc * feat(ui5-dynamic-page): snap on scroll pin expand collapse * feat(ui5-dynamic-page): add floating footer styling and animation (SAP#7857) * feat(ui5-dynamic-page): snap on scroll pin expand collapse * feat(ui5-dynamic-page): add breadcrumbs responsiveness (SAP#7844) * feat(ui5-dynamic-page): ensure visibility of content outside overflow (SAP#7845) * feat(ui5-dynamic-page): ensure visibility of title content that never overflows * feat(ui5-dynamic-page) actions style corrected Co-authored-by: Dobrin Dimchev <[email protected]> * feat(ui5-dynamic-page): sizing of toolbar wrappers corrected * feat(ui5-dynamic-page): apply review feedback --------- Co-authored-by: Dobrin Dimchev <[email protected]> * feat(ui5-dynamic-page): footer no longer takes space when hidden (SAP#7904) * feat(ui5-dynamic-page): prevent unnecessary content overflow when footer hidden * feat(ui5-dynamic-page): move scroll listener to the new scroll container * feat(ui5-dynamic-page): add header padding (SAP#7921) * feat(ui5-dynamic-page): add responsive paddings (SAP#7923) * build: align with new build process * feat(ui5-dynamic-page): fit content that has 100% height (SAP#7928) * feat(ui5-dynamic-page): fit content that has 100% height * feat(ui5-dynamic-page): correct import * feat(ui5-dynamic-page): add tests * feat(ui5-dynamic-page): keyboard handling (SAP#7990) * feat(ui5-dynamic-page): keyboard handling * feat(ui5-dynamic-page): add focus span * fix: add expand and focus on title click --------- Co-authored-by: Dobrin Dimchev <[email protected]> * fix(ui5-dynamic-page): theme styling (SAP#7966) fix(ui5-dynamic-page): apply theme styles Co-authored-by: PetyaMarkovaBogdanova <[email protected]> * feat(ui5-dynamic-page): screen reader support (SAP#7997) * feat(ui5-dynamic-page): screen reader support * feat(ui5-dynamic-page): add tests * feat(ui5-dynamic-page): add general interaction tests (SAP#8056) * docs(ui5-dynamic-page): story and docs added (SAP#8031) fix(ui5-dynamic-page): story and docs added Co-authored-by: PetyaMarkovaBogdanova <[email protected]> * feat(ui5-dynamic-page): add general API tests (SAP#8115) * feat(ui5-dynamic-page): proper docs added (SAP#8130) Co-authored-by: PetyaMarkovaBogdanova <[email protected]> * chore: align docs to new build scripts * chore: use framework's debounce method --------- Co-authored-by: PetyaMarkovaBogdanova <[email protected]> Co-authored-by: Diana Pazheva <[email protected]> Co-authored-by: PetyaMarkovaBogdanova <[email protected]>
When the footer is not shown, it is still in the DOM and takes space in order to allow the bouncing animation upon show/hide.
Problem: The above, however, causes scroll overflow of the container where the footer is positioned (when the footer is hidden).
Solution: Place the footer element outside the scroll container and into a container that has "overflow-y: hidden"
Also isolated a simplified demo (html & CSS only):
with issue: https://jsbin.com/webayekoje/edit?html,output
with fix: https://jsbin.com/mavebagome/edit?html,output