Skip to content

Commit

Permalink
Change the escape button tag to a div, not a li
Browse files Browse the repository at this point in the history
There wasn't a list to contain the escape button, so it shouldn't be a list
item.

Also fixed some display issues on the demo page (three backticks for code
blocks doesn't seem to work anymore).
  • Loading branch information
BryceStevenWilley committed Dec 14, 2023
1 parent 3ffaedb commit afd5c09
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docassemble/ALToolbox/data/questions/escape_button.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ objects:
mandatory: True
variable name: al_navigation_items["escape_button"]
data: |
<li class="nav-item al_escape_nav"><a class="btn btn-danger al_escape" href="https://google.com">Escape</a></li>
<div class="nav-item al_escape_nav"><a class="btn btn-danger al_escape" href="https://google.com">Escape</a></div>
---
default screen parts:
navigation bar html: |
Expand Down
8 changes: 5 additions & 3 deletions docassemble/ALToolbox/data/questions/escape_button_demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ subquestion: |
If you would like to combine the "Escape" button with a custom link in the
top navigation bar, you can do so by adding mandatory block like this:
```
<pre>
<code>
---
mandatory: True
variable name: al_navigation_items["my_link"]
data: |
<li class="nav-item"><a class="btn" href="https://google.com">My link</a></li>
```
&lt;div class="nav-item"&gt;&lt;a class="btn" href="https://google.com"&gt;My link&lt;/a&gt;&lt;/div&gt;
</code>
</pre>
And making sure that it runs on a line before you `include` the `escape_button.yml` file.
Expand Down

0 comments on commit afd5c09

Please sign in to comment.