Skip to content

Commit 61403f3

Browse files
committed
Allow the page helper to accept extra attributes
1 parent 4fe1030 commit 61403f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

admin/app/components/solidus_admin/layout/page_helpers.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# frozen_string_literal: true
22

33
module SolidusAdmin::Layout::PageHelpers
4-
def page(&block)
5-
tag.div(capture(&block), class: "px-4 relative", "data-controller": stimulus_id)
4+
def page(**attrs, &block)
5+
tag.div(capture(&block), class: "px-4 relative", "data-controller": stimulus_id, **attrs)
66
end
77

88
def page_header_actions(&block)

0 commit comments

Comments
 (0)