Skip to content

Commit

Permalink
Merge pull request #1053 from sul-dlss/reveal
Browse files Browse the repository at this point in the history
Replace reveal controller with native <details>
  • Loading branch information
jcoyne authored Jun 27, 2024
2 parents 00f29a2 + e29bedf commit a61c073
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 18 deletions.
14 changes: 0 additions & 14 deletions app/javascript/controllers/reveal_controller.js

This file was deleted.

9 changes: 5 additions & 4 deletions app/views/preview/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@
<br><br>
<button class='btn btn-primary btn-lg'>Show me the MODS!</button>
<% end %>
<div data-controller='reveal'>
<a href="#examples" data-action="reveal#toggle" class="su-underline">Examples</a><br>
<div id="examples" style="display:none" data-reveal-target="area">

<details>
<summary class="btn btn-link su-underline">Examples</summary>
<div>
<ol>
<li>
<textarea rows="6">
Expand All @@ -58,4 +59,4 @@
</li>
</ol>
</div>
</div>
</details>

0 comments on commit a61c073

Please sign in to comment.