patternfly / angular-patternfly

This repo contains instructions and the code for a set of Angular 1 components for the PatternFly project.
http://www.patternfly.org/angular-patternfly/
MIT License
122 stars 90 forks source link

pfToolbar: only show second toolbar row when there are active filters #720

Closed abkieling closed 6 years ago

abkieling commented 6 years ago

Based on PatternFly's Toolbar page and the pattern implementation in Patternfly NG, the second toolbar row should only be visible when there are active filters. References: http://www.patternfly.org/pattern-library/forms-and-controls/toolbar/ https://rawgit.com/patternfly/patternfly-ng/master-dist/dist-demo/#/toolbar

dtaylor113 commented 6 years ago

Not sure that is accurate, see http://www.patternfly.org/pattern-library/forms-and-controls/toolbar/#design

  1. Content and Results Count: ..."If no filters are applied, only the total number of items and the item type are displayed (e.g. 40 Virtual Machines). " I think maybe the patternfly-ng implementation is incorrect? @dlabrecq, @beanh66 ? -thanks
dtaylor113 commented 6 years ago

Patternfly-React seems to also show the second row when no filters. example Both Angular-Patternfly and Patternfly-React do not display the results count right-aligned though.

abkieling commented 6 years ago

@dtaylor113 It looks like the lack of consistency across the documentation is causing confusion and leading to different implementations.

dtaylor113 commented 6 years ago

@akieling, yeah, I was looking through some of the pf-design repo. issues, looks like @mcarrano is tracking a few of the inconsistencies. @mcarrano to you happen to know if this one is in the pf design backlog? -thanks

dtaylor113 commented 6 years ago

Issue in Patternfly Design: https://github.com/patternfly/patternfly-design/issues/576

mcarrano commented 6 years ago

We are in the process of addressing this on the design side. But I believe that this issue should be closed. The second line of the toolbar is intended to be present at all times whether filters are applied or not. That space can also be used to optionally display a pagination control when pagination is supported. Apologize for all the inconsistencies that crept in on this.

beanh66 commented 6 years ago

@mcarrano thanks, I'll close this for now.