Skip to content

Commit

Permalink
Merge pull request thoughtbot#289 from matiassingers/sass-pre-html5-fix
Browse files Browse the repository at this point in the history
Add !global to html5 input loops to remove deprecation notices with Sass 3.3rc
  • Loading branch information
Phil LaPier committed Nov 8, 2013
2 parents 7e6e3f2 + 7480139 commit b4ec9ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/assets/stylesheets/addons/_html5-input-types.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ $inputs-list: 'input[type="email"]',

$unquoted-inputs-list: ();
@each $input-type in $inputs-list {
$unquoted-inputs-list: append($unquoted-inputs-list, unquote($input-type), comma);
$unquoted-inputs-list: append($unquoted-inputs-list, unquote($input-type), comma) !global;
}

$all-text-inputs: $unquoted-inputs-list;
Expand All @@ -33,15 +33,15 @@ $all-text-inputs: $unquoted-inputs-list;
$all-text-inputs-hover: ();
@each $input-type in $unquoted-inputs-list {
$input-type-hover: $input-type + ":hover";
$all-text-inputs-hover: append($all-text-inputs-hover, $input-type-hover, comma);
$all-text-inputs-hover: append($all-text-inputs-hover, $input-type-hover, comma) !global;
}

// Focus Pseudo-class
//************************************************************************//
$all-text-inputs-focus: ();
@each $input-type in $unquoted-inputs-list {
$input-type-focus: $input-type + ":focus";
$all-text-inputs-focus: append($all-text-inputs-focus, $input-type-focus, comma);
$all-text-inputs-focus: append($all-text-inputs-focus, $input-type-focus, comma) !global;
}

// You must use interpolation on the variable:
Expand Down

0 comments on commit b4ec9ce

Please sign in to comment.