Simplify code structure example

Drops the `title_arguments:` forward-reference to an `id` defined later
in the block. The `aria-describedby` wiring is an advanced pattern that
cluttered an introductory example.
This commit is contained in:
Alexander Brandon Coles
2026-05-20 20:19:57 +02:00
parent 5642c29986
commit 986dc16e77
@@ -164,11 +164,7 @@ render OpenProject::Common::BorderBoxListComponent.new(
padding: :condensed,
collapsible: true
) do |list|
list.with_header(
title: "Project attributes",
title_arguments: { aria: { describedby: "project-attributes-description" } },
count: true
) do |header|
list.with_header(title: "Project attributes", count: true) do |header|
header.with_description(id: "project-attributes-description", font_size: :small) do
"Visible in the project overview"
end