Skip to content

helper-text class for hints#12

Open
grrrisu wants to merge 1 commit into
jamesfwz:masterfrom
grrrisu:hint-class
Open

helper-text class for hints#12
grrrisu wants to merge 1 commit into
jamesfwz:masterfrom
grrrisu:hint-class

Conversation

@grrrisu

@grrrisu grrrisu commented Oct 17, 2018

Copy link
Copy Markdown

Hello!

I use a form with a hint like this:

<%= f.input :password, required: true, hint: "6 characters minimum" %>

At the moment hints are displayed within a span with the class help-block.
Which looks like this with error:

bildschirmfoto 2018-10-17 um 20 56 22

According to the example on https://materializecss.com/text-inputs.html, hints or helper texts use the class helper-text
<span class="helper-text" data-error="wrong" data-success="right">Helper text</span>

This PR replaces the class help-block with helper-text
Which then looks like this with error:

bildschirmfoto 2018-10-17 um 21 05 44

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

Successfully merging this pull request may close these issues.

1 participant