PTNFLY-938 Adding Find to the toolbar#383
Conversation
|
👍 |
|
@dtaylor113 Please review |
less/toolbar.less
Outdated
| .btn{ | ||
| outline: none; | ||
| } | ||
| .find-pf-dropdown-container{ |
There was a problem hiding this comment.
Can these -pf- classes be un-nested to reduce specificity without breaking anything? (.toolbar-pf-view-selector, .toolbar-pf-find, and .find-pf-dropdown-container?)
There was a problem hiding this comment.
@srambach, Thanks for checking. :-)
But .toolbar-pf-find and .find-pf-dropdown-container should be nested.
As the attached link: https://devops-ucd.rhcloud.com/June/patternfly/find.png
The position of .find-pf-dropdown-container is based on the father node .toolbar-pf-find.
Absolute positioning inside relative positioning make the .find-pf-dropdowm-container to be below of the magnifying glass icon.
There was a problem hiding this comment.
Sorry, I mean un-nesting the Less rules. The HTML is fine as is, but even if the elements are nested in the HTML, the selectors to style them don't need to be nested. Nesting them makes the selector very long and specificity increases, making it difficult to override the rules later if desired.
I think that you can move .toolbar-pf-view-selector, .toolbar-pf-action-right, .toolbar-pf-view-selector, and .toolbar-pf-find all out to the top level and everything still works fine.
|
Cloned this dev branch and ran the toolbar test page. Find LGTM. |
|
@jeff-phillips-18 came across the note that "In the angular version, an interim solution was created that added a class to the toolbar when there are no filters and put in a bottom margin... base PF needs to address this so that the angularjs story can remove and replace with the base pf solution." Does this PR include this detail? |
40035f8 to
ab37967
Compare
|
@jeff-phillips-18 @LHinson |
|
@LHinson Yes, adding the 10px bottom-margin to .toolbar-pf-actions fixes the issue caused when there is no filtering. Angular-Patternfly can remove the code that works around this. |
|
great, thank you @jeff-phillips-18 @junezhang Looks like the comment from @srambach is the only open issue? |
ab37967 to
3b6c84f
Compare
|
@srambach Thanks, I got your point, I will update the code soon. |
3b6c84f to
278d146
Compare
|
Looks great! Thanks for the changes. |
Review of PTNFLY-938 Adding Find to the toolbar #383
https://patternfly.atlassian.net/browse/PTNFLY-938
Adding Find to the toolbar
Based on Jeff and Sarah’s feedback, refine the code.