Floating Footer for Page component problem
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 ?
To reproduce Steps to reproduce the behavior:
- Go to https://github.com/KevinOkamoto/poc-checkout
- Clone repo
- Run
npm i
ng serve
ng serve ui5-checkout
If I hide footer this is what I get:
Do I need to import some additional styles ? As I see icons are missing too.
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?
Hi @fkolar @petermuessig
The default behaviour of the ui5-page is to occupy 100% of the available space inside its parent. In this case its parent is the custom element declared by Angular app-checkout-page. Both app-checkout-page & its parent app-root(also declared by Angular) have no rules when it comes to their dimensions(width & height). In this case the body has no predefined dimensions as well which leads to the result in the screenshot. I agree that it is a good idea to document this properly. I already created a PR.
When it comes to the icons, all the documentation that is currently available is provided in the given link underneath the samples. Moreover, we are printing a warning in the console if the application is using an icon which is not imported.

When it comes to the header/footer slots, my personal observation is that the docs are not consistent. I think the docs should state that they accept 1..n HTMLElements rather than 0..n. We will discuss this and come back to you with a statement.
Disregard this msg: @SAP/ui5-webcomponents-topic-rl
Hello @fkolar,
I hope the analysis provided in the previous replies helped you to find a solution for the issue faced. We have updated our documentation as well.
Kind Regards, Niya
thank you.