Skip to content

Commit

Permalink
feat(bs5): Replace .btn-block with utility classes
Browse files Browse the repository at this point in the history
Keep prop for backwards compat
  • Loading branch information
gthomas-appfolio authored and phwebi committed Oct 27, 2021
1 parent cbcb2e3 commit 4dc1dcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Button.js
Expand Up @@ -71,7 +71,7 @@ class Button extends React.Component {
close || 'btn',
close || btnOutlineColor,
size ? `btn-${size}` : false,
block ? 'btn-block' : false,
block ? 'd-block w-100' : false,
{ active, disabled: this.props.disabled }
), cssModule);

Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/Button.spec.js
Expand Up @@ -94,7 +94,7 @@ describe('Button', () => {
it('should render block level buttons', () => {
const block = shallow(<Button block>Block Level Button</Button>);

expect(block.hasClass('btn-block')).toBe(true);
expect(block.hasClass('d-block w-100')).toBe(true);
});

it('should render close icon utility with default props', () => {
Expand Down

0 comments on commit 4dc1dcd

Please sign in to comment.