Skip to content

Commit

Permalink
Popover fix - from using in real apps (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
forsbergplustwo authored Mar 18, 2024
1 parent 98a6103 commit 32787c7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion app/assets/stylesheets/polaris_view_components.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion app/assets/stylesheets/polaris_view_components/custom.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,10 @@ html[class~="Polaris-Summer-Editions-2023"] {
}

/* Filters */

.Polaris-LegacyFilters-ConnectedFilterControl__RightContainer {
.Polaris-LegacyFilters-ConnectedFilterControl__Item {
z-index: auto;

& > div > div > button {
margin-right: -1px;
border-radius: 0;
Expand Down
2 changes: 1 addition & 1 deletion app/components/polaris/filters_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def popover_arguments
style: ("width: #{@width}" if @width.present?),
position: :below,
alignment: :left,
append_to_body: true
append_to_body: false
}
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 32787c7

Please sign in to comment.