Skip to content

Commit

Permalink
Merge pull request #377 from baoagency/filters
Browse files Browse the repository at this point in the history
Fix filter popovers
  • Loading branch information
forsbergplustwo authored Feb 10, 2024
2 parents b153d40 + bf51544 commit 45a397c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/components/polaris/filters_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ def popover_arguments
sectioned: @sectioned,
style: ("width: #{@width}" if @width.present?),
position: :below,
alignment: :left
alignment: :left,
append_to_body: true
}
end

Expand Down
2 changes: 1 addition & 1 deletion test/components/polaris/filters_component_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ def test_default_filters
assert_selector "[data-polaris-popover-target='activator']" do
assert_selector ".Polaris-Button", text: "Filter"
end
assert_selector "[data-polaris-popover-target='popover']", text: "Content"
end
end
assert_selector "[data-polaris-popover-target='template']", visible: :hidden
end
end
end
Expand Down

0 comments on commit 45a397c

Please sign in to comment.