Compare commits

...
Sign in to create a new pull request.

4 commits

Author SHA1 Message Date
Patrick H. Lauke
1bc2bff1bf
Merge branch 'main' into patrickhlauke-issue26202 2020-12-06 21:42:13 +00:00
Patrick H. Lauke
35b6242a85
Merge branch 'main' into patrickhlauke-issue26202 2020-11-30 18:28:00 +00:00
Martijn Cuppens
020a8c4336
Make use of Sass nesting & remove redundant class 2020-11-29 13:43:18 +01:00
Patrick H. Lauke
6f9d8d7080 Tweak list-group to show numbers on list items when used on an <ol> 2020-11-24 13:15:13 +00:00
2 changed files with 18 additions and 1 deletions

View file

@ -83,6 +83,12 @@
border-top-width: $list-group-border-width;
}
}
// Explicit override to allow numbers to show when using an <ol>
ol > & {
display: list-item;
list-style-position: inside;
}
}

View file

@ -20,6 +20,18 @@ The most basic list group is an unordered list with list items and the proper cl
</ul>
{{< /example >}}
When the `.list-group` class is applied to an `<ol>` ordered list, list item numbers are also shown.
{{< example >}}
<ol class="list-group">
<li class="list-group-item">Cras justo odio</li>
<li class="list-group-item">Dapibus ac facilisis in</li>
<li class="list-group-item">Morbi leo risus</li>
<li class="list-group-item">Porta ac consectetur ac</li>
<li class="list-group-item">Vestibulum at eros</li>
</ol>
{{< /example >}}
## Active items
Add `.active` to a `.list-group-item` to indicate the current active selection.
@ -254,7 +266,6 @@ And if you want `<label>`s as the `.list-group-item` for large hit areas, you ca
</div>
{{< /example >}}
## JavaScript behavior
Use the tab JavaScript plugin—include it individually or through the compiled `bootstrap.js` file—to extend our list group to create tabbable panes of local content.