Skip to content

Commit

Permalink
Merge pull request #376 from baoagency/popover
Browse files Browse the repository at this point in the history
Popover
  • Loading branch information
forsbergplustwo authored Feb 10, 2024
2 parents 91f8fa9 + 1b0410c commit b153d40
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
8 changes: 8 additions & 0 deletions app/assets/stylesheets/polaris_v12_overrides/popover.pcss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
html[class~="Polaris-Summer-Editions-2023"] .Polaris-Popover {
.Polaris-Popover__Content .Polaris-Popover__Pane:first-child > .Polaris-Popover__Section > .Polaris-Box {
padding: var(--p-space-300) var(--p-space-400) var(--p-space-100);
}
.Polaris-Popover__Content .Polaris-Popover__Pane:last-child > .Polaris-Popover__Section > .Polaris-Box {
padding: var(--p-space-300) var(--p-space-300);
}
}
6 changes: 5 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.

1 change: 1 addition & 0 deletions app/assets/stylesheets/polaris_view_components.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@
@import "./polaris_v12_overrides/card.pcss";
@import "./polaris_v12_overrides/pagination.pcss";
@import "./polaris_v12_overrides/action_list.pcss";
@import "./polaris_v12_overrides/popover.pcss";
2 changes: 1 addition & 1 deletion app/components/polaris/popover/section_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def system_arguments

def call
render(Polaris::BaseComponent.new(**system_arguments)) do
render(Polaris::BoxComponent.new(padding: "4")) do
render(Polaris::BoxComponent.new(padding: "2")) do
content
end
end
Expand Down

0 comments on commit b153d40

Please sign in to comment.