Skip to content

Commit

Permalink
style(empty state): add text wrap balance to empty state text (#2026)
Browse files Browse the repository at this point in the history
  • Loading branch information
monicawheeler authored Nov 21, 2024
1 parent 66fb3ec commit 48a06cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
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

0 comments on commit 48a06cf

Please sign in to comment.