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

[update] add original attributes to outputted html #45

Merged
merged 24 commits into from
Jun 8, 2016

Conversation

brandonbarringer
Copy link
Contributor

Grabs all the attributes on an inky element, minus 'class', 'id', and 'href', and adds those attributes to the outputted html

@rafibomb
Copy link
Member

This is a great PR! I was wonder if there is a good way to pass in valign attributes to tables. This may solve it.

Have to see why the build is failing before merging.

…target

Add optional 'target' attribute for <button>
Added data-attribute no-expander to <columns> to disable the .expander
@brandonbarringer
Copy link
Contributor Author

Checks 8&9 where already failed when I forked the repo. 1-7 are stumping me as to why they are failing. The code seems to be working fine on my end.

@brandonbarringer
Copy link
Contributor Author

@rafibomb fixed failed test by leveraging code from issue #37. Also missed a var in my for in loop that was failing the rest of the tests. Should be good to go now

@rafibomb
Copy link
Member

rafibomb commented Jun 2, 2016

Sweet! Looking to get #37 across the line as well as this killer PR for 6.2.2!

@rafibomb
Copy link
Member

rafibomb commented Jun 3, 2016

@brandonbarringer Testing this out today - looks like the attributes are being passed in on the row but not the columns. It would be ideal to be able to pass in attributes onto the columns as well.

Things like:

  • valign
  • dir
  • align

Are you able to add that to this feature?

@rafibomb
Copy link
Member

rafibomb commented Jun 3, 2016

Made a small change to the function to allow multiple attributes as well as a test for columns. Hope that helps you add the columns attributes. Let me know if questions come up!

@brandonbarringer
Copy link
Contributor Author

Sure. I will get something pushed up soon.

@brandonbarringer
Copy link
Contributor Author

Alright. I was able to add the same functionality to the columns by creating a utility function. Let me know if you have any issues with the way this was implemented. I had to change the structure a bit to get it to work across modules.

@rafibomb rafibomb added this to the 2.2.0 milestone Jun 8, 2016
@rafibomb
Copy link
Member

rafibomb commented Jun 8, 2016

Amazing PR! This is great because we tested out vertical alignment and source ordering with this and it works great! foundation/foundation-emails@d9353f0

2.2 is looking like it's feature rich thanks to your help!

@brandonbarringer
Copy link
Contributor Author

brandonbarringer commented Jun 9, 2016

Glad I could help. Really love this framework and plan on contributing as much I can as I continue using it. Let me know if there is anything else I can help with!

@kareljan
Copy link

Is it possible to copy stuff like title to the element?

<menu>
  <item href="link" title="E-shop" target="_blank">E-shop</item>
</menu>

gives me with the latest version

<table align="center" class="menu float-center"><tr><td><table><tr>
  <th title="E-shop" target="_blank" class="menu-item float-center"><a href="link">E-shop</a></th>
</tr></table></td></tr></table>

You would expect the title and target attribute on the a-tag rather than on the th-tag.
And the same with buttons. When I add a target and title attribute to a button, the a-tag it compiles to gets the target (this is good), but the title attribute disappears.

How can we fix this?

Thanks

@jwgoh jwgoh mentioned this pull request Feb 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants