diff --git a/docs/components/list-group.md b/docs/components/list-group.md
index 0d325498414b..79ed6dc7f0dd 100644
--- a/docs/components/list-group.md
+++ b/docs/components/list-group.md
@@ -31,16 +31,16 @@ Add labels to any list group item to show unread counts, activity, etc.
{% example html %}
-
- 14
Cras justo odio
+ 14
-
- 2
Dapibus ac facilisis in
+ 2
-
- 1
Morbi leo risus
+ 1
{% endexample %}
diff --git a/scss/_list-group.scss b/scss/_list-group.scss
index 5115e56fa2b3..21a43eb77011 100644
--- a/scss/_list-group.scss
+++ b/scss/_list-group.scss
@@ -3,6 +3,11 @@
// Easily usable on , , or .
.list-group {
+ @if $enable-flex {
+ display: flex;
+ flex-direction: column;
+ }
+
// No need to set list-style: none; since .list-group-item is block level
padding-left: 0; // reset padding because ul and ol
margin-bottom: 0;
@@ -14,8 +19,14 @@
// Use on `li`s or `div`s within the `.list-group` parent.
.list-group-item {
+ @if $enable-flex {
+ display: flex;
+ flex-flow: row wrap;
+ align-items: center;
+ } @else {
+ display: block;
+ }
position: relative;
- display: block;
padding: .75rem 1.25rem;
// Place the border on the list items and negative margin up for better styling
margin-bottom: -$list-group-border-width;