question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Floating Footer for Page component problem

See original GitHub issue

Describe the bug

I just set up new Angular project and I tried to use Page WC and I am getting this behavior you can see on the picture. The floating bar slides from bottom up and stays in header. I just copied example from docs. Not sure if I am missing something ?

Screen Shot 2021-05-06 at 12 17 43 PM

To reproduce Steps to reproduce the behavior:

  1. Go to https://github.com/KevinOkamoto/poc-checkout
  2. Clone repo
  3. Run
npm i 
ng serve 
ng serve  ui5-checkout

If I hide footer this is what I get:

Screen Shot 2021-05-06 at 12 29 02 PM

Do I need to import some additional styles ? As I see icons are missing too.

Screen Shot 2021-05-06 at 12 59 42 PM

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
petermuessigcommented, May 6, 2021

Just had a look into the example, the height: 100%; is missing for <html> and <body>. IMO, this should be documented for components like the <ui5-page> that the component needs to have a dedicated height and when you want to fill the full page with the page component we should document how to do so with the height style.

Another issue is the height calculation for the header / footer. @Web Components Team: as we allow 0…n HTMLElements to be put into the header or the footer slot, the height calculation needs to work properly.

To import the icons, the documentation is here: https://sap.github.io/ui5-webcomponents/playground/components/Icon/ - do we also have a central documentation for using icons?

0reactions
fkolarcommented, Jun 16, 2021

thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Easy sticky footer - stop a footer from floating up a short page!
Having the footer of the page just floating around in the middle just looks... bad. So let's see how we can fix it...
Read more >
floating footer always on the bottom and visible - Stack Overflow
Basically this checks to see if the height of the document will fill the window, if it is less than the window, it...
Read more >
A Clever Sticky Footer Technique - CSS-Tricks
The idea is that they stick to the bottom of the screen, even when the content of the page isn't enough to push...
Read more >
Tech spotlight: Floating footer with React functional components
Senior front end engineer David Daudelin walks us through building a floating footer to solve a range of complex scenarios with forms of ......
Read more >
How to create footer to stay at the bottom of a Web page?
How to position a div at the bottom of its container using CSS? Related Articles. 1. How to create fixed/sticky footer on the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found