Premium Badge - BS5 migration (#20496)

* migrating premium badge to BS5 and changing the unit test

* fixing unit test

* using badge badge-prepend classes for the premium badge

* fixing unit test

* adding font-weight variable

* removing unused CSS

* adding aria-hidden

GitOrigin-RevId: a1ab2eeedd95ee500c21607abd09a0a8a07289f0
This commit is contained in:
Davinder Singh 2024-09-24 12:53:17 +01:00 committed by Copybot
parent 248fc3699a
commit 4c2425fe25
2 changed files with 12 additions and 0 deletions

View file

@ -85,3 +85,11 @@ $max-width: 160px;
height: var(--spacing-04); height: var(--spacing-04);
border-radius: 50%; border-radius: 50%;
} }
.badge-premium {
background-color: var(--neutral-20);
color: var(--neutral-90);
vertical-align: middle;
margin-left: 5px;
font-weight: var(--badge-font-weight);
}

View file

@ -40,4 +40,8 @@
--bs-card-spacer-y: var(--spacing-08); --bs-card-spacer-y: var(--spacing-08);
--bs-card-spacer-x: var(--spacing-08); --bs-card-spacer-x: var(--spacing-08);
} }
.badge-premium {
--badge-font-weight: 600;
}
} }