-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 [backport release-0.2] Allow the select and multiselect filter cont…
…rols to scroll content (#1113) Add param `isScrollable`, and released css, to allow the patternfly `Select` components at the core of `SelectFilterControl` and `MultiselectFilterControl` to scroll its content as needed. This is a replication of the patternfly Menu `isScrollable` prop[1]. Summary of changes: - Add `isScrollable` (with a default value of `false`) to `SelectFilterControl` and `MultiselectFilterControl` - Add `select-overrides.css` to implement the scrolling for the components - Minor tweaks to the filter select controls to mirror code formatting as they are very similar components Backport of #1094 [1]: https://www.patternfly.org/v4/components/menu#scrollable-menus Signed-off-by: Scott J Dickerson <sdickers@redhat.com>
- Loading branch information
Showing
4 changed files
with
37 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
client/src/app/shared/components/FilterToolbar/select-overrides.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.pf-c-select.isScrollable .pf-c-select__menu { | ||
max-height: 60vh; | ||
overflow-y: auto; | ||
} |