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

Suggestion: Not wrap MqLayout content in a <div> #31

Open
sebmor opened this issue Feb 9, 2019 · 2 comments
Open

Suggestion: Not wrap MqLayout content in a <div> #31

sebmor opened this issue Feb 9, 2019 · 2 comments

Comments

@sebmor
Copy link

sebmor commented Feb 9, 2019

Right now when you use

<mq-layout mq="md">
  <div class="medium-layout">Medium Layout</div>
</mq-layout>

It will compile into

<div>
  <div class="medium-layout">Medium Layout</div>
</div>

I think it would be much easier for layout purposes that it would not encapsulate around an empty <div>

@tophat1986
Copy link

Agree. The empty DIV adds an extra node into my DOM with a width of 0%, so content is not displaying natively.

@kskrlinnorth2
Copy link

Is this resolved? How to avoid wrapper div element?

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

No branches or pull requests

3 participants