mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
8ad788d0b0
Content passed to `#with_description` must not include HTML block elements (such as flex layouts). Blankslate always renders descriptions within a `p` element, which may only contain inline HTML elements. https://community.openproject.org/wp/70419
8 lines
328 B
Plaintext
8 lines
328 B
Plaintext
<%= render(Primer::Beta::Blankslate.new) do |component|
|
|
component.with_visual_icon(icon: blankslate_config[:icon], size: :medium)
|
|
component.with_heading(tag: :h2).with_content(
|
|
blankslate_config[:heading_text]
|
|
)
|
|
component.with_description_content(blankslate_config[:description_text])
|
|
end %>
|