From fd402445e177e305ef5ee0808492d13206917359 Mon Sep 17 00:00:00 2001 From: Kevin Ross Date: Wed, 11 Nov 2015 10:35:32 -0600 Subject: [PATCH] removed `hint` class in lieu of standard `help-block` --- less/_inputs.less | 14 +++++++------- less/_variables.less | 2 +- scripts/material.js | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/less/_inputs.less b/less/_inputs.less index fe5090ff..b8ffdd25 100644 --- a/less/_inputs.less +++ b/less/_inputs.less @@ -73,8 +73,8 @@ @label-as-placeholder-top: -1 * (@vertical-padding + @label-as-placeholder-shim); //@label-as-placeholder-top: -1 * (@line-height * @static-font-size); way too much on anything but sm - @hint-font-size: ceil((@hint-size-ratio * @placeholder-font-size)); - @hint-line-height: (@hint-size-ratio * @line-height); + @help-block-font-size: ceil((@help-block-size-ratio * @placeholder-font-size)); + @help-block-line-height: (@help-block-size-ratio * @line-height); .form-control { .material-placeholder({ @@ -85,9 +85,9 @@ //border: 1px solid; } - .hint { - margin-top: 0px; // allow the input margin to set-off the top of the hint - font-size: @hint-font-size; + .help-block { + margin-top: 0px; // allow the input margin to set-off the top of the help-block + font-size: @help-block-font-size; //border: 1px solid; } @@ -164,13 +164,13 @@ } // Hints - .hint { + .help-block { position: absolute; display: none; } &.is-focused { - .hint { + .help-block { display: block; } } diff --git a/less/_variables.less b/less/_variables.less index 462e0864..c70f6e7a 100644 --- a/less/_variables.less +++ b/less/_variables.less @@ -85,7 +85,7 @@ // inputs @input-placeholder-color: #BDBDBD; @floating-label-size-ratio: 75 / 100; -@hint-size-ratio: 75 / 100; +@help-block-size-ratio: 75 / 100; @input-underline-color: #D2D2D2; @md-input-font-size-base: 16px; diff --git a/scripts/material.js b/scripts/material.js index 5186489e..95dad6e3 100644 --- a/scripts/material.js +++ b/scripts/material.js @@ -82,7 +82,7 @@ // Legacy - Add hint label if using the old shorthand data-hint attribute on the input if ($input.attr("data-hint")) { - $input.after("

" + $input.attr("data-hint") + "

"); + $input.after("

" + $input.attr("data-hint") + "

"); $input.removeAttr("data-hint"); }