Files
openproject/app/components/shares/empty_state_component.html.erb
Alexander Brandon Coles 8ad788d0b0 [#70419] Fix usages of Blankslate description slot
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
2026-01-11 16:00:31 -03:00

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 %>