diff --git a/scss/_list-group.scss b/scss/_list-group.scss index 3d82f8f43..ee5a67516 100644 --- a/scss/_list-group.scss +++ b/scss/_list-group.scss @@ -85,6 +85,12 @@ } } +// Explicit override to allow numbers to show when using an
    +ol.list-group > .list-group-item { + display: list-item; + list-style-position: inside; +} + // Horizontal // diff --git a/site/content/docs/5.0/components/list-group.md b/site/content/docs/5.0/components/list-group.md index 1debfdd69..191e19ae5 100644 --- a/site/content/docs/5.0/components/list-group.md +++ b/site/content/docs/5.0/components/list-group.md @@ -20,6 +20,18 @@ The most basic list group is an unordered list with list items and the proper cl {{< /example >}} +When the `.list-group` class is applied to an `
      ` ordered list, list item numbers are also shown. + +{{< example >}} +
        +
      1. Cras justo odio
      2. +
      3. Dapibus ac facilisis in
      4. +
      5. Morbi leo risus
      6. +
      7. Porta ac consectetur ac
      8. +
      9. Vestibulum at eros
      10. +
      +{{< /example >}} + ## Active items Add `.active` to a `.list-group-item` to indicate the current active selection. @@ -254,7 +266,6 @@ And if you want `