Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

remove p surrounding over modal content #325

Merged
merged 2 commits into from
May 15, 2018
Merged

Conversation

MariuszHenn
Copy link
Contributor

scote
scote previously approved these changes May 15, 2018
@scote scote removed their assignment May 15, 2018
@scote scote requested a review from jfcere May 15, 2018 15:09
<p>
<ng-content select="mz-modal-content"></ng-content>
</p>
<ng-content select="mz-modal-content"></ng-content>
Copy link
Contributor

@jfcere jfcere May 15, 2018

Choose a reason for hiding this comment

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

@MariuszHenn thanks for your PR!

Like you said in the issue, the p element should be replaced with a div. Otherwise if somebody would write ...

<mz-modal>
  <mz-modal-header>Header</mz-modal-header>
  <mz-modal-content>Content</mz-modal-content>
</mz-modal>

The content of mz-modal-header and mz-modal-content would be side-by-side instead of one over each other.

Note that changing p for div will only remove top/bottom margin in the mz-modal-content leaving more control over the spacing.

@scote scote dismissed their stale review May 15, 2018 15:15

You should add <div> like @jfcere said.

@jfcere jfcere merged commit 875bac0 into sherweb:master May 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants