Skip to content

Commit

Permalink
badge before tab
Browse files Browse the repository at this point in the history
  • Loading branch information
sebheitzmann committed Oct 27, 2023
1 parent 9b32ca5 commit c2c7348
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Resources/views/brick/tab/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@
{% endif %} position-relative"
data-bs-toggle="tab"
href="#{{ tab.id }}"
role="tab" type="button">{{ tab.label|trans(domain=view.config.translation_domain) }}
<span id="{{ tab.id }}-badge" class="position-absolute top-0 start-200 translate-middle badge rounded-pill bg-primary"></span>
role="tab" type="button">
<span id="{{ tab.id }}-badge" class="badge rounded-pill bg-primary"></span>
{{ tab.label|trans(domain=view.config.translation_domain) }}

</a>
</li>
{% endif %}
Expand Down

0 comments on commit c2c7348

Please sign in to comment.