Skip to content

Commit

Permalink
Fix #402 modal button valid HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
vsalvino committed Jan 25, 2021
1 parent ea9489e commit 49673f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coderedcms/templates/coderedcms/blocks/modal_block.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% block block_render %}

{% generate_random_id as modal_id %}
<a href="#" data-toggle="modal" data-target="#{{modal_id}}" type="button" class="btn {{self.button_size}} {{self.button_style}}">{{self.button_title}}</a>
<a href="#" data-toggle="modal" data-target="#{{modal_id}}" role="button" class="btn {{self.button_size}} {{self.button_style}}">{{self.button_title}}</a>

<div id="{{modal_id}}" class="modal fade" role="dialog">
<div class="modal-dialog">
Expand Down Expand Up @@ -33,4 +33,4 @@ <h5 class="modal-title">{% include_block self.header %}</h5>

</div>
</div>
{% endblock %}
{% endblock %}

0 comments on commit 49673f2

Please sign in to comment.