Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion previews/primer/beta/button_preview/summary_as_button.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
<details>
<span
id="button-summary-live"
class="sr-only"
role="alert"
Comment thread
llastflowers marked this conversation as resolved.
Outdated
aria-atomic="true"
></span>

<details
onToggle="document.getElementById('button-summary-live').textContent = this.open ? 'A wrapping `details` tag is required when using the button with the `:summary` tag' : ''"
Comment thread
llastflowers marked this conversation as resolved.
Outdated
>
Comment thread
llastflowers marked this conversation as resolved.
Outdated
<%= render(Primer::Beta::Button.new(
scheme: scheme,
size: size,
Expand All @@ -9,5 +18,6 @@
)) do %>
Button
<% end %>

<p>A wrapping `details` tag is required when using the button with the `:summary` tag</p>
</details>
Loading