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

Content does only work for Form Element Nodes? #713

Closed
HannesOberreiter opened this issue Sep 7, 2017 · 2 comments
Closed

Content does only work for Form Element Nodes? #713

HannesOberreiter opened this issue Sep 7, 2017 · 2 comments
Labels

Comments

@HannesOberreiter
Copy link

Hi,

thanks for the new update works good so far.

Seems like the content option only works for form type fields, dont know if this was intended.

Here a small fiddle with p element:
https://jsfiddle.net/1ogbtxfx/1/

Cheers
Hannes

@t4t5
Copy link
Owner

t4t5 commented Sep 7, 2017

I took a closer look and it seems like it does actually render, but it's invisible because the p-tag inherits from .swal-overlay (which uses font-size: 0 for alignment reasons).

This should definitely be fixed for the next release! It can easily be done by specifying font-size: initial in the CSS for .swal-content!

@t4t5 t4t5 added the bug label Sep 7, 2017
@HannesOberreiter
Copy link
Author

Thanks, sorry I did not look closer into it myself.

Cheers
Hannes

@t4t5 t4t5 closed this as completed in 419bf67 Sep 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants