ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

Floating Footer for Page component problem

Open fkolar opened this issue 5 years ago • 5 comments

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

fkolar avatar May 06 '21 10:05 fkolar

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?

petermuessig avatar May 06 '21 11:05 petermuessig

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. image

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.

fifoosid avatar May 07 '21 11:05 fifoosid

Disregard this msg: @SAP/ui5-webcomponents-topic-rl

ilhan007 avatar May 14 '21 09:05 ilhan007

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

niyap avatar Jun 16 '21 09:06 niyap

thank you.

fkolar avatar Jun 16 '21 09:06 fkolar