Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(textfloat): tabbing now works properly, css improved
Browse files Browse the repository at this point in the history
Work on #469
Closes #458
  • Loading branch information
ThomasBurleson committed Oct 27, 2014
1 parent c7e3a83 commit 27f4375
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 36 deletions.
67 changes: 33 additions & 34 deletions src/components/textField/_textField.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,49 +46,48 @@ $tff-margin: 10px 0 (10px - $tff-line-focused-width) 0;

@mixin text-dashed-line( $dotGap, $dotSize) {
background-size: $dotSize $dotGap;

background-position: 0 bottom;

background-size: (1px + 1px) $dotGap;
background-repeat: repeat-x;
}

form {
}
md-input-group,
.md-input-group {

label {
display: block;
font-size: $tff-font-size;
}
label {
display: block;
font-size: $tff-font-size;
}

textarea,
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"] {
display: block;
border-width: 0 0 1px 0;
padding-top:2px;
line-height: $tff-line-height;
padding-bottom: 1px;

&:focus {
outline: 0;
textarea,
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"] {
display: block;
border-width: 0 0 1px 0;
padding-top: 2px;
line-height: $tff-line-height;
padding-bottom: 1px;

&:focus {
outline: 0;
}
}
}

input, textarea {
background: none;
input, textarea {
background: none;
}
}

// Light-Theme
Expand Down
4 changes: 2 additions & 2 deletions src/components/textField/textField.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ function mdTextFloatDirective($mdTheming) {
};
},
template:
'<md-input-group ng-disabled="isDisabled">' +
' <label for="{{fid}}">{{label}}</label>' +
'<md-input-group ng-disabled="isDisabled" tabindex="-1">' +
' <label for="{{fid}}" tabindex="-1">{{label}}</label>' +
' <md-input id="{{fid}}" ng-model="value"></md-input>' +
'</md-input-group>'
};
Expand Down

0 comments on commit 27f4375

Please sign in to comment.