openproject icon indicating copy to clipboard operation
openproject copied to clipboard

[#70419] Fix usages of `Blankslate` description slot

Open myabc opened this issue 2 months ago • 0 comments

Ticket

https://community.openproject.org/wp/70419

What are you trying to accomplish?

Fixes generated HTML

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.

FYI @opf/sirius

Screenshots

In most cases, the appearance should be virtually unchanged. However in the case of the Meetings template page, making the secondary action actionable requires cutting down the text (thereby following these guidelines).

Before

Screenshot 2026-01-11 at 16 19 15

After

image

Merge checklist

  • [ ] Added/updated tests
  • [ ] Added/updated documentation in Lookbook (patterns, previews, etc)
  • [ ] Tested major browsers (Chrome, Firefox, Edge, ...)

myabc avatar Jan 11 '26 19:01 myabc