You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Renamed `.badges-list` to `.badge-list` and `.tags-list` to `.tag-list` so every element list follows the same singular naming as `.btn-list` and `.avatar-list`. The old class names still work as deprecated aliases. Documentation examples and preview pages that show several buttons, badges, avatars, or tags in one
8
+
row now use the matching list container, including the job listing page, which was using a `badges`
Add a [status indicator](/ui/components/status) to your avatar to show, for instance, if a user is online or offline or indicate the number of messages they have received.
Add a short label under the icon with the `avatar-upload-text` class. The content is stacked in a column, so use this only in the larger sizes. The text is shown in uppercase, like all avatar text.
@@ -107,9 +107,9 @@ To pick a real file, use a `label` with the upload classes and connect it to a h
107
107
<divclass="row align-items-end"style="width: 100%;"> <divclass="col-auto"> <labelfor="avatar-file"class="avatar avatar-upload avatar-lg rounded cursor-pointer"> <Iconname="plus" /> </label> <inputtype="file"id="avatar-file"class="visually-hidden"accept="image/*" /> </div> <divclass="col"> <labelclass="form-label"for="avatar-file">Avatar</label> <divclass="text-secondary">Click to upload a new avatar</div> </div> </div>
108
108
</Example>
109
109
110
-
## Avatars list
110
+
## Avatar list
111
111
112
-
Create a list of avatars within one parent container.
112
+
Use the `.avatar-list` container to create a list of avatars within one parent container. It keeps consistent spacing between items and wraps them when there is not enough space.
Use the `.badge-list` container whenever you show more than one badge next to each other. It keeps consistent spacing between items and wraps them when there is not enough space.
26
+
27
+
```html
28
+
<divclass="badge-list">
29
+
<spanclass="badge">First</span>
30
+
<spanclass="badge">Second</span>
31
+
</div>
32
+
```
33
+
23
34
## Headings
24
35
25
36
Badges can be used in headings to draw attention to new or important information. You can use them in any heading level, from `<h1>` to `<h6>`. The example below shows how to use badges in headings.
@@ -35,43 +46,43 @@ You can use the `-lt` classes to create a light version of the badge. This is us
35
46
For example you can use the `bg-blue-lt` class to create a light blue badge. If you add the `text-blue-lt-fg` class, the text will be blue as well.
You can use it to create a pill with numbers, for example, to show the number of unread messages. The badge will adjust its width to the number of digits.
0 commit comments