Skip to content

Commit

Permalink
Merge pull request #118 from edx/dsjen/update-table-header
Browse files Browse the repository at this point in the history
fix(table): Use class name for button in table heading
  • Loading branch information
dsjen authored Jan 8, 2018
2 parents d9bfb4c + 7c12644 commit a0e346b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .storybook/__snapshots__/Storyshots.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2169,7 +2169,7 @@ exports[`Storyshots Table sortable 1`] = `
scope="col"
>
<button
className="btn"
className="btn-header btn"
onBlur={[Function]}
onClick={[Function]}
onKeyDown={[Function]}
Expand Down
2 changes: 1 addition & 1 deletion src/Table/Table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@import "~bootstrap/scss/utilities/_screenreaders.scss";
@import "~bootstrap/scss/utilities/_spacing.scss";

th .btn {
.btn-header {
@extend .p-0;
font-weight: $font-weight-bold;
}
1 change: 1 addition & 0 deletions src/Table/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class Table extends React.Component {
let heading;
if (this.props.tableSortable && column.columnSortable) {
heading = (<Button
className={[classNames(styles['btn-header'])]}
label={
<span>
{column.label}
Expand Down

0 comments on commit a0e346b

Please sign in to comment.