Skip to content

Commit

Permalink
Restrict border & border-radius to bordered tables
Browse files Browse the repository at this point in the history
Bootstrap’s non-bordered tables don’t have an outline border
  • Loading branch information
sman591 committed Apr 26, 2017
1 parent efa7836 commit 8e446f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion css/react-bootstrap-table.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
margin-bottom: 0;
}

.react-bs-table {
.react-bs-table-bordered {
border: 1px solid #ddd;
border-radius: 5px;
}
Expand Down
2 changes: 1 addition & 1 deletion src/BootstrapTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ class BootstrapTable extends Component {
{ toolBar }
{ showPaginationOnTop ? pagination : null }
<div ref='table'
className={ classSet('react-bs-table', this.props.tableContainerClass) }
className={ classSet('react-bs-table', { 'react-bs-table-bordered': this.props.bordered }, this.props.tableContainerClass) }
style={ { ...style, ...this.props.tableStyle } }
onMouseEnter={ this.handleMouseEnter }
onMouseLeave={ this.handleMouseLeave }>
Expand Down

0 comments on commit 8e446f3

Please sign in to comment.