Conversation
|
Love the PR! My thoughts: Perhaps we use a different tag?
|
|
Excellent thought, and I agree with you on many levels. However, if I can play devils advocate for a moment, If the usual HR tag fails always, is there a reason to allow essentially always broken elements to a template? |
|
I agree with both... Is this the first time a decision like this will be made (to use an existing element node)? If yes - then perhaps we stick with Good PR! |
|
You can say that the |
|
Hmm, I love the discussion! Other than user confusion, I'm not seeing an issue with using an |
|
That is a great point I hadn't considered. Also, user confusion is something I always try to avoid. I have been swayed. I'll make the change over to |
|
No objections! Couple last things to get this across the line:
|
|
Just to clarify, by empty table cell, are you referring to the |
|
Yes, empty I added a test case in this branch: ff103b3 I used a |
|
So the Inky code here works well, but the SCSS is a bit more challenging to get to work across every email client. Do you have CSS that works well with this? |
|
Sure. Here is what I used recently on a template $hr-width: 70px;
$hr-height: 4px;
$hr-margin: 20px;
$hr-color: $medium-gray;
table.hr
th
height: 0
border-bottom: $hr-height solid $hr-color
width: $hr-width |
|
@brandonbarringer Ok - looks great! Can you point this PR to develop so we can merge it in today? We're doing QA for the 2.2 release and would love to get this in! |
|
Thanks - that did the trick! Updated the CSS! foundation/foundation-emails@29b923d As long as we can get this PR into develop we're good for the release tomorrow! |
|
Sorry it has been so long. I've been swamped with work. I will work on this tonight for tomorrow's release |
…tlook fixes, removes unnecessary `tbody`
|
As far as I can tell, there still remain a number of issues for this approach, all addressed in PR #679:
Most of these, especially #678, require that the compiled <table class="hr">
<tr>
<th>
<table>
<tr>
<td> </td>
</tr>
</table>
</th>
</tr>
</table>This is so that the inner |
|
Hi, there is a problem with a self-closing tag. I think it's because of Cheerio This test will fall |
Because outlook and office365 doesn't play well with
<hr>s, this commit creates a pseudo hr element using table markup