-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create .merge-test (#3995) * add purple style to inset text * Update inset text to support header+title * update docs * removed margin between title and text * removing margin - linting fix --------- Co-authored-by: Martyn Whitwell <martyn.whitwell@gmail.com>
- Loading branch information
1 parent
1731f90
commit 4023263
Showing
6 changed files
with
55 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
<%= tag.section(class: classes) do %> | ||
<%= tag.h2(title) if title.present? %> | ||
<% if header.present? || title.present? %> | ||
<%= tag.h2 role: "text" do %> | ||
<%= tag.span(header, class: "header") if header.present? %> | ||
<%= tag.span(title, class: "title") if title.present? %> | ||
<% end %> | ||
<% end %> | ||
<%= tag.p(helpers.safe_html_format(text)) %> | ||
<% 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
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