MDL-80259 theme_boost: Refactor badge helper classes for Bootstrap 5

This commit is contained in:
Mikel Martín 2023-12-01 10:54:22 +01:00
parent 810554ee83
commit a198884333
93 changed files with 218 additions and 209 deletions

View file

@ -69,7 +69,7 @@
</p>
</div>
<div class="unread-count-container">
<span data-region="unread-count" class="badge badge-danger">{{unreadcount}}</span>
<span data-region="unread-count" class="badge bg-danger text-white">{{unreadcount}}</span>
</div>
</div>
</a>

View file

@ -98,7 +98,7 @@
</div>
<div class="d-flex align-self-center align-items-center">
<span
class="badge badge-pill badge-primary {{^unreadcount}}hidden{{/unreadcount}}"
class="badge rounded-pill bg-primary text-white {{^unreadcount}}hidden{{/unreadcount}}"
data-region="unread-count"
>
<span aria-hidden="true">{{unreadcount}}</span>

View file

@ -91,7 +91,7 @@
</div>
<span
class="badge badge-pill badge-primary {{^unreadcount}}hidden{{/unreadcount}}"
class="badge rounded-pill bg-primary text-white {{^unreadcount}}hidden{{/unreadcount}}"
data-region="unread-count"
>
{{unreadcount}}

View file

@ -64,7 +64,7 @@
aria-selected="false"
>
{{#str}} requests {{/str}}
<span class="badge badge-primary bg-primary ml-2 {{^contactrequestcount}}hidden{{/contactrequestcount}}"
<span class="badge bg-primary text-white ml-2 {{^contactrequestcount}}hidden{{/contactrequestcount}}"
data-region="contact-request-count"
>
<span aria-hidden="true">{{contactrequestcount}}</span>

View file

@ -68,7 +68,7 @@
{{#pix}} i/user, core {{/pix}}
{{#str}} contacts, core_message {{/str}}
<span
class="badge badge-primary bg-primary ml-2 {{^contactrequestcount}}hidden{{/contactrequestcount}}"
class="badge bg-primary text-white ml-2 {{^contactrequestcount}}hidden{{/contactrequestcount}}"
data-region="contact-request-count"
>
<span aria-hidden="true">{{contactrequestcount}}</span>

View file

@ -62,7 +62,7 @@
{{> core/loading }}
</span>
<span
class="{{^count.unread}}hidden{{/count.unread}} badge badge-pill badge-primary ml-auto bg-primary"
class="{{^count.unread}}hidden{{/count.unread}} badge rounded-pill bg-primary text-white ml-auto"
data-region="section-unread-count"
>
<span aria-hidden="true">{{count.unread}}</span>