Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty state: add text wrap balance to empty state text #2026

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<%= sage_component SageEmptyState, {
icon: "trash",
title: "Title for state",
text: "Text to appear below. Lorem ipsum dolor sit amet consectituor."
text: "Text to appear below. Lorem ipsum dolor sit amet consectituor. Lorem ipsum dolor sit amet consectituor.",
} do %>
<p>Other stuff such as buttons...</p>
<% end %>
Expand All @@ -12,7 +12,7 @@
<%= sage_component SageEmptyState, {
icon: "bold",
title: "Title for state, compact variety",
text: "Text to appear below. Lorem ipsum dolor sit amet consectituor.",
text: "Text to appear below. Lorem ipsum dolor sit amet consectituor. Lorem ipsum dolor sit amet consectituor. Lorem ipsum dolor sit amet consectituor.",
size: "compact",
} do %>
<p>Other stuff such as buttons...</p>
Expand All @@ -22,7 +22,7 @@
<%= sage_component SageEmptyState, {
graphic: image_tag("card-placeholder-lg.png", alt: ""),
title: "Title for state, with graphic instead of icon",
text: "Text to appear below. Lorem ipsum dolor sit amet consectituor.",
text: "Text to appear below. Lorem ipsum dolor sit amet consectituor. Lorem ipsum dolor sit amet consectituor. Lorem ipsum dolor sit amet consectituor.",
} do %>
<p>Other stuff such as buttons...</p>
<% end %>
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ $-empty-state-icon-compact-size: rem(56px);
@extend %t-sage-body;

word-wrap: break-word;
text-wrap: balance;
}

.sage-empty-state__text,
Expand Down
Loading