Skip to content

Commit

Permalink
fix(Modal): use ButtonSet
Browse files Browse the repository at this point in the history
  • Loading branch information
emyarod committed Aug 11, 2020
1 parent 63c4c5d commit 4438761
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/react/src/components/Modal/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { settings } from 'carbon-components';
import { Close20 } from '@carbon/icons-react';
import toggleClass from '../../tools/toggleClass';
import Button from '../Button';
import ButtonSet from '../ButtonSet';
import deprecate from '../../prop-types/deprecate';
import requiredIfGivenPropIsTruthy from '../../prop-types/requiredIfGivenPropIsTruthy';
import wrapFocus, {
Expand Down Expand Up @@ -419,7 +420,7 @@ export default class Modal extends Component {
<div className={`${prefix}--modal-content--overflow-indicator`} />
)}
{!passiveModal && (
<div className={`${prefix}--modal-footer`}>
<ButtonSet className={`${prefix}--modal-footer`}>
<Button kind="secondary" onClick={onSecondaryButtonClick}>
{secondaryButtonText}
</Button>
Expand All @@ -430,7 +431,7 @@ export default class Modal extends Component {
ref={this.button}>
{primaryButtonText}
</Button>
</div>
</ButtonSet>
)}
</div>
);
Expand Down

0 comments on commit 4438761

Please sign in to comment.