Skip to content

Commit 11bf2dd

Browse files
authored
Fix padding for modal actions (#204)
Fix padding for modal actions
2 parents f6c61a7 + bbd7dd9 commit 11bf2dd

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

packages/react-components/CHANGELOG.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# [Unreleased](https://github.com/puppetlabs/design-system/compare/@puppet/[email protected])
22

3-
- [ActionSelect, ButtonSelect] Add `width` prop to ActionSelect and ButtonSelect (by [@rhyza](https://github.com/rhyza) in [#199](https://github.com/puppetlabs/design-system/pull/199))
4-
- [Breadcrumb] Fix Breadcrumb accessibility and focusability
3+
- [ActionSelect, ButtonSelect] Add `width` prop to ActionSelect and ButtonSelect (by [@rhyza](https://github.com/rhyza) in [#201](https://github.com/puppetlabs/design-system/pull/201))
4+
- [Breadcrumb] Fix Breadcrumb accessibility and focusability (by [@rhyza](https://github.com/rhyza) in [#199](https://github.com/puppetlabs/design-system/pull/199))
5+
- [Modal] Fix padding for modal actions, an issue introduced in 5.11.1 (by [@vine77](https://github.com/vine77) in [#204](https://github.com/puppetlabs/design-system/pull/204))
56

67
# [5.13.1](https://github.com/puppetlabs/design-system/compare/@puppet/[email protected]...@puppet/[email protected]) (2020-01-22)
78

packages/react-components/source/react/library/modal/Modal.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ class Modal extends Component {
6060
const { pluckedDescendants: actions, otherDescendants } = filterDescendants(
6161
{
6262
children,
63-
filter: childTypeName => childTypeName === 'ModalActions',
63+
components: ModalActions,
6464
},
6565
);
66+
6667
const hasActions = actions.length > 0;
6768

6869
return (

0 commit comments

Comments
 (0)