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

Heler-text class for form.help_text #57

Open
ItsDevMonk opened this issue Dec 22, 2020 · 0 comments
Open

Heler-text class for form.help_text #57

ItsDevMonk opened this issue Dec 22, 2020 · 0 comments

Comments

@ItsDevMonk
Copy link

For form.<FIELD_NAME>.help_text, if you can add the helper-text class, it would be great.

Currently, I am using like this,

<div class="input-field col s12">
	<i class="material-icons prefix">enhanced_encryption</i>
	{{form.password1}}
	{{form.password1.label_tag}}
	{% if form.password1.help_text %}
		<span class="helper-text">{{form.password1.help_text |safe}}</span>
	{% endif %}
	{{form.password1.errors}}
</div>

If i replace everything with {{ form | materializecss }}, everything looks fine, only problem is with the help_text. Size of helper text should be small and muted. So helper-text will work fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant