[#72945] Default action button scheme in Header

Adds `DEFAULT_ACTION_SCHEME` (`:default`) to `Header` so callers
no longer need to pass `scheme:` for standard header buttons.
Updates Lookbook preview and Backlogs sprint component to use the
new default.

https://community.openproject.org/wp/72945
This commit is contained in:
Alexander Brandon Coles
2026-05-14 17:02:39 +02:00
parent e63c07f9a7
commit 20a4783d96
3 changed files with 6 additions and 5 deletions
@@ -39,7 +39,7 @@ module OpenProject
) do |list|
list.with_header(title: "Things we're building", count: true) do |header|
header.with_description { "There's lots to look forward to" }
header.with_action_button(scheme: :invisible) do |button|
header.with_action_button do |button|
button.with_leading_visual_icon(icon: :pencil)
"Edit"
end