Skip to content

Commit

Permalink
Adjust spacing on NavigationList component (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
forsbergplustwo authored Dec 18, 2023
1 parent 62529d0 commit aef9f39
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
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 @@ -2,4 +2,5 @@
@import "./polaris_view_components/shopify_navigation.pcss";
@import "./polaris_view_components/spacer_component.pcss";
@import "./polaris_view_components/tooltip_component.pcss";
@import "./polaris_view_components/navigation_list_component.pcss";
@import "./polaris_view_components/custom.pcss";
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.NavigationList {
padding-top: var(--p-space-3);
padding-bottom: var(--p-space-3);

ul {
margin: 0;
}

.Polaris-Navigation__Item {
padding-bottom: var(--p-space-1);
padding-top: var(--p-space-1);
}
}
10 changes: 6 additions & 4 deletions app/components/polaris/navigation_list_component.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<%= polaris_card(sectioned: false, style: "padding-top: 1em; padding-bottom: 1em;") do |card| %>
<% items.each do |item| %>
<%= item %>
<% end %>
<%= polaris_card(sectioned: false, classes: "NavigationList") do |card| %>
<ul>
<% items.each do |item| %>
<%= item %>
<% end %>
</ul>
<% end %>

0 comments on commit aef9f39

Please sign in to comment.