Skip to content

Commit

Permalink
Add data-turbo-frame="_top" to landing page buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
davidalejandroaguilar committed Sep 22, 2024
1 parent 757ee63 commit 7c29299
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions app/views/landings/show_view.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,21 @@ def view_template
end

div class: "flex gap-4 self-start" do
Button :outline, as: :a, href: examples_path(:button) do
Button(
:outline,
as: :a,
href: examples_path(:button),
data: {turbo_frame: :_top}
) do
"Browse components"
end

Button :primary, as: :a, href: docs_path(:installation) do
Button(
:primary,
as: :a,
href: docs_path(:installation),
data: {turbo_frame: :_top}
) do
"Get started"
end
end
Expand Down

0 comments on commit 7c29299

Please sign in to comment.