fix icon spacing in call to action
This commit is contained in:
parent
fba84938c8
commit
5622dc6b28
@ -23,7 +23,7 @@
|
||||
{% for button in call_to_action.buttons %}
|
||||
<a
|
||||
href="{{ button.href | default('#') }}"
|
||||
class="btn btn-{{ button.theme | default('primary') }} my-2 d-inline-flex"
|
||||
class="btn btn-{{ button.theme | default('primary') }} my-2"
|
||||
>
|
||||
{% if button.icon %}
|
||||
<i class="bi-{{ button.icon }}"></i>
|
||||
|
4
test.py
4
test.py
@ -53,8 +53,8 @@ template_vars = {
|
||||
"header": "This is a call to action",
|
||||
"lead_text": "Some interesting text for the user",
|
||||
"buttons": [
|
||||
{"href": "1"},
|
||||
{"href": "2", "theme": "danger"},
|
||||
{"text": "something"},
|
||||
{"theme": "danger", "text": "something dangerous"},
|
||||
{"href": "3", "theme": "warning", "icon": "exclamation-diamond-fill"},
|
||||
{
|
||||
"href": "3",
|
||||
|
Loading…
Reference in New Issue
Block a user