foundation-emails icon indicating copy to clipboard operation
foundation-emails copied to clipboard

[Alignment] attribute valign for inky not working

Open onlyketch opened this issue 3 years ago • 4 comments

Example style="vertical-align: middle;" - works well, but valign="middle" not working

onlyketch avatar Mar 19 '21 14:03 onlyketch

I also stumbled across this. This example from the documentation does not work: https://get.foundation/emails/docs/alignment.html#vertical-alignment

Stadly avatar Mar 25 '21 06:03 Stadly

I can confirm this bug on my end as well. Hopefully this project gets some attention soon!

ghost avatar Apr 14 '21 12:04 ghost

I confirm, bug reproduced. Was downgrade to version 2.2.1 of foundation-emails package and it's working again

ai-leonid avatar Apr 22 '21 17:04 ai-leonid

It's because in 2.3.0 version th is also set to top https://github.com/foundation/foundation-emails/blob/v2.3.0/scss/components/_normalize.scss#L80

I fixed it for myself by

[valign="top"] {
  vertical-align: top;
}

[valign="center"] {
  vertical-align: center;
}

[valign="bottom"] {
  vertical-align: bottom;
}

illycz avatar Jan 13 '22 14:01 illycz