From b79dbc80f6cecb8d0b5b9c6d76e17c5fa3c7ef6e Mon Sep 17 00:00:00 2001 From: Yassien <11986226+YassienW@users.noreply.github.com> Date: Sat, 10 Nov 2018 09:55:54 +0200 Subject: [PATCH] Condensed now takes bootstrap4 into consideration (#653) --- packages/react-bootstrap-table2/src/bootstrap-table.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react-bootstrap-table2/src/bootstrap-table.js b/packages/react-bootstrap-table2/src/bootstrap-table.js index 0c5c862..c23eb91 100644 --- a/packages/react-bootstrap-table2/src/bootstrap-table.js +++ b/packages/react-bootstrap-table2/src/bootstrap-table.js @@ -45,6 +45,7 @@ class BootstrapTable extends PropsBaseResolver(Component) { tabIndexCell, id, classes, + bootstrap4, striped, hover, bordered, @@ -66,7 +67,7 @@ class BootstrapTable extends PropsBaseResolver(Component) { 'table-striped': striped, 'table-hover': hover, 'table-bordered': bordered, - 'table-condensed': condensed + [(bootstrap4 ? 'table-sm' : 'table-condensed')]: condensed }, classes); const tableCaption = (caption &&