Skip to content

Commit

Permalink
fix use of removed slots api
Browse files Browse the repository at this point in the history
  • Loading branch information
joelhawksley committed Apr 4, 2023
1 parent 9cd530e commit 363bc1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/components/primer/beta/border_box.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class BorderBox < Primer::Component
#
# @param system_arguments [Hash] <%= link_to_system_arguments_docs %>
# @accessibility
# When using header.title, the recommended tag is a heading tag, such as h1, h2, h3, etc.
# When using header.with_title, the recommended tag is a heading tag, such as h1, h2, h3, etc.
renders_one :header, "Primer::Beta::BorderBox::Header"

# Optional Body.
Expand Down Expand Up @@ -72,8 +72,8 @@ class BorderBox < Primer::Component

# @example Header with title, body, rows, and footer
# <%= render(Primer::Beta::BorderBox.new) do |component| %>
# <% component.with_header do |h| %>
# <% h.title(tag: :h2) do %>
# <% component.with_header do |header| %>
# <% header.with_title(tag: :h2) do %>
# Header
# <% end %>
# <% end %>
Expand Down

0 comments on commit 363bc1f

Please sign in to comment.