File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,11 @@ class Table extends React.Component {
21
21
*/
22
22
bordered : PropTypes . bool ,
23
23
24
+ /**
25
+ * Removes all borders on the table and cells, including table header.
26
+ */
27
+ borderless : PropTypes . bool ,
28
+
24
29
/**
25
30
* Enable a hover state on table rows within a `<tbody>`.
26
31
*/
@@ -56,6 +61,7 @@ class Table extends React.Component {
56
61
className,
57
62
striped,
58
63
bordered,
64
+ borderless,
59
65
hover,
60
66
size,
61
67
variant,
@@ -70,6 +76,7 @@ class Table extends React.Component {
70
76
size && `${ bsPrefix } -${ size } ` ,
71
77
striped && `${ bsPrefix } -striped` ,
72
78
bordered && `${ bsPrefix } -bordered` ,
79
+ borderless && `${ bsPrefix } -borderless` ,
73
80
hover && `${ bsPrefix } -hover` ,
74
81
) ;
75
82
Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ describe('Table', () => {
20
20
mount ( < Table bordered /> ) . assertSingle ( 'table.table-bordered' ) ;
21
21
} ) ;
22
22
23
+ it ( 'Should have correct class when borderless' , ( ) => {
24
+ mount ( < Table borderless /> ) . assertSingle ( 'table.table-borderless' ) ;
25
+ } ) ;
26
+
23
27
it ( 'Should have correct class when small' , ( ) => {
24
28
mount ( < Table size = "sm" /> ) . assertSingle ( 'table.table-sm' ) ;
25
29
} ) ;
You can’t perform that action at this time.
0 commit comments