meteor-useraccounts / materialize

Accounts Templates styled for Materialize.
http://useraccounts.meteor.com/
MIT License
49 stars 26 forks source link

Custom Button Class #16

Closed scottmcpherson closed 9 years ago

scottmcpherson commented 9 years ago

Hey @splendido, would it be cool to add the at buttons class as a parameter to the template so that we're not stuck with that default teal? I would be happy to submit the PR, but I believe this is all it would take:

<template name="atNavButton">
  <a id="at-nav-button" class="waves-effect btn-flat {{class}}">{{text}}</a>
</template>
splendido commented 9 years ago

this kind of class configurations will be included with v2.0. For now you can redefine your template with:

<template name="myAtNavButton">
  <a id="at-nav-button" class="waves-effect btn-flat red">{{text}}</a>
</template>
Template.myAtNavButton.replaces("atNavButton");

See this comment to get more details.