Skip to content

Commit

Permalink
fix(ComposedModal): use ButtonSet
Browse files Browse the repository at this point in the history
  • Loading branch information
emyarod committed Aug 11, 2020
1 parent 4438761 commit dbe73a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/react/src/components/ComposedModal/ComposedModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Button from '../Button';
import ButtonSet from '../ButtonSet';
import classNames from 'classnames';
import { settings } from 'carbon-components';
import { Close20 } from '@carbon/icons-react';
Expand Down Expand Up @@ -575,7 +576,7 @@ export class ModalFooter extends Component {
});

return (
<div className={footerClass} {...other}>
<ButtonSet className={footerClass} {...other}>
{secondaryButtonText && (
<Button
className={secondaryClass}
Expand All @@ -597,7 +598,7 @@ export class ModalFooter extends Component {
)}

{children}
</div>
</ButtonSet>
);
}
}

0 comments on commit dbe73a9

Please sign in to comment.