-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add unsectioned content support in EmptyState component
- Loading branch information
1 parent
8e433e9
commit ab44358
Showing
6 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,7 @@ def with_subdued_footer | |
|
||
def full_width | ||
end | ||
|
||
def unsectioned_content | ||
end | ||
end |
12 changes: 12 additions & 0 deletions
12
.../components/previews/structure/empty_state_component_preview/unsectioned_content.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<%= polaris_card do %> | ||
<%= polaris_empty_state( | ||
heading: "Manage your inventory transfers", | ||
image: "https://cdn.shopify.com/s/files/1/0262/4071/2726/files/emptystate-files.png", | ||
) do |state| %> | ||
<p>Track and receive your incoming inventory from suppliers.</p> | ||
|
||
<% state.unsectioned_content do %> | ||
<p>Content outside of EmptyState Section.</p> | ||
<% end %> | ||
<% end %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters