diff --git a/scss/_list-group.scss b/scss/_list-group.scss index a95adc181..afb53e3e5 100644 --- a/scss/_list-group.scss +++ b/scss/_list-group.scss @@ -83,6 +83,12 @@ border-top-width: $list-group-border-width; } } + + // Explicit override to allow numbers to show when using an
    + ol > & { + display: list-item; + list-style-position: inside; + } } diff --git a/site/content/docs/5.0/components/list-group.md b/site/content/docs/5.0/components/list-group.md index e148bd4e6..4064f324c 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 `