Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ModalContent): Hide footer when no actions #1167

Merged
merged 1 commit into from
Jan 11, 2019
Merged

fix(ModalContent): Hide footer when no actions #1167

merged 1 commit into from
Jan 11, 2019

Conversation

rebeccaalpert
Copy link
Member

Adjusted ModalContent so it only shows the footer if the actions array has content. I also made some
adjustments to ModalContent.test.js since some snapshots were blank, one
test had a typo, and some tests used what seems to be a deprecated footer prop.

Fixes #1107.

Show the footer only if the actions array has content. Also made some
adjustments to ModalContent.test.js since some snapshots were blank, one
test had a typo, and some tests used a deprecated footer prop.

Fixes #1107
@coveralls
Copy link

Pull Request Test Coverage Report for Build 3916

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.03%) to 81.09%

Files with Coverage Reduction New Missed Lines %
packages/patternfly-4/react-core/src/components/Modal/ModalContent.js 1 82.35%
Totals Coverage Status
Change from base Build 3914: -0.03%
Covered Lines: 4372
Relevant Lines: 5081

💛 - Coveralls

@tlabaj tlabaj added the PF4 label Jan 11, 2019
Copy link
Contributor

@tlabaj tlabaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@tlabaj tlabaj merged commit a58a262 into patternfly:master Jan 11, 2019
@rebeccaalpert rebeccaalpert deleted the modal-footer branch January 14, 2019 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants