We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
Repeated mj-tags inside the mj-attributes seem to be ignored except for the last ones.
mj-tag
mj-attributes
Reproduction Steps:
Use following MJML sources:
https://mjml.io/try-it-live/HkEN2o8Az
<mjml> <mj-head> <mj-attributes> <mj-all color="blue" /> <mj-all font-size="40px" /> </mj-attributes> </mj-head> <mj-body> <mj-section> <mj-column> <mj-text> Hello World! </mj-text> </mj-column> </mj-section> </mj-body> </mjml>
or
<mjml> <mj-head> <mj-attributes> <mj-text color="blue" /> <mj-text font-size="40px" /> </mj-attributes> </mj-head> <mj-body> <mj-section> <mj-column> <mj-text> Hello World! </mj-text> </mj-column> </mj-section> </mj-body> </mjml>
Expected behavior:
Both color and font-size attributes are applied to Hello World!.
color
font-size
Hello World!
Observed behavior:
Only the last attribute (here font-size) is applied to Hello World!.
MJML version:
The "try-it-live" version (4.0.5?).
The text was updated successfully, but these errors were encountered:
You could work around this like:
<mj-attributes> <mj-text color="blue" font-size="40px" /> </mj-attributes>
But I thought I'd file it as an issue since:
Thank you so much for your consideration.
Sorry, something went wrong.
Thanks for finding this @rinopo
We'll try to fix it for 4.1 release. cc @kmcb777
Hi @rinopo we released a new beta for mjml 4.1, which you can install with npm install mjml@next, could you check if it resolves the problem you had ?
npm install mjml@next
1d7c05e
No branches or pull requests
Hi,
Repeated
mj-tag
s inside themj-attributes
seem to be ignored except for the last ones.Reproduction Steps:
Use following MJML sources:
https://mjml.io/try-it-live/HkEN2o8Az
or
Expected behavior:
Both
color
andfont-size
attributes are applied toHello World!
.Observed behavior:
Only the last attribute (here
font-size
) is applied toHello World!
.MJML version:
The "try-it-live" version (4.0.5?).
The text was updated successfully, but these errors were encountered: