From 61403f3a0ff198551c19de0677cab6fc116b0150 Mon Sep 17 00:00:00 2001 From: Elia Schito Date: Fri, 3 Nov 2023 14:07:37 +0100 Subject: [PATCH] Allow the `page` helper to accept extra attributes --- admin/app/components/solidus_admin/layout/page_helpers.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/app/components/solidus_admin/layout/page_helpers.rb b/admin/app/components/solidus_admin/layout/page_helpers.rb index 5226902d967..7bf7bfb409f 100644 --- a/admin/app/components/solidus_admin/layout/page_helpers.rb +++ b/admin/app/components/solidus_admin/layout/page_helpers.rb @@ -1,8 +1,8 @@ # frozen_string_literal: true module SolidusAdmin::Layout::PageHelpers - def page(&block) - tag.div(capture(&block), class: "px-4 relative", "data-controller": stimulus_id) + def page(**attrs, &block) + tag.div(capture(&block), class: "px-4 relative", "data-controller": stimulus_id, **attrs) end def page_header_actions(&block)