mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user