Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [backport release-0.2] Allow the select and multiselect filter controls to scroll content #1113

Merged
merged 2 commits into from
Jul 11, 2023

Conversation

sjd78
Copy link
Member

@sjd78 sjd78 commented Jul 11, 2023

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

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 konveyor#1094
[1]: https://www.patternfly.org/v4/components/menu#scrollable-menus

Signed-off-by: Scott J Dickerson <sdickers@redhat.com>
@sjd78 sjd78 requested review from mturley, gildub and ibolton336 July 11, 2023 18:36
@codecov
Copy link

codecov bot commented Jul 11, 2023

Codecov Report

Patch coverage: 33.33% and project coverage change: -0.02 ⚠️

Comparison is base (e0b0db3) 46.95% compared to head (5dc24f2) 46.93%.

Additional details and impacted files
@@               Coverage Diff               @@
##           release-0.2    #1113      +/-   ##
===============================================
- Coverage        46.95%   46.93%   -0.02%     
===============================================
  Files              177      177              
  Lines             4432     4442      +10     
  Branches           987      991       +4     
===============================================
+ Hits              2081     2085       +4     
- Misses            2337     2343       +6     
  Partials            14       14              
Flag Coverage Δ
unitests 46.93% <33.33%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
.../shared/components/FilterToolbar/FilterControl.tsx 37.50% <ø> (ø)
...d/components/FilterToolbar/SelectFilterControl.tsx 11.62% <28.57%> (+3.51%) ⬆️
...ponents/FilterToolbar/MultiselectFilterControl.tsx 9.52% <40.00%> (+2.74%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@sjd78 sjd78 merged commit 895ea42 into konveyor:release-0.2 Jul 11, 2023
@sjd78 sjd78 deleted the backport_1094 branch July 21, 2023 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants