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

Commit 27f4375

Browse files
fix(textfloat): tabbing now works properly, css improved
Work on #469 Closes #458
1 parent c7e3a83 commit 27f4375

2 files changed

Lines changed: 35 additions & 36 deletions

File tree

src/components/textField/_textField.scss

Lines changed: 33 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -46,49 +46,48 @@ $tff-margin: 10px 0 (10px - $tff-line-focused-width) 0;
4646

4747
@mixin text-dashed-line( $dotGap, $dotSize) {
4848
background-size: $dotSize $dotGap;
49-
5049
background-position: 0 bottom;
51-
5250
background-size: (1px + 1px) $dotGap;
5351
background-repeat: repeat-x;
5452
}
5553

56-
form {
57-
}
54+
md-input-group,
55+
.md-input-group {
5856

59-
label {
60-
display: block;
61-
font-size: $tff-font-size;
62-
}
57+
label {
58+
display: block;
59+
font-size: $tff-font-size;
60+
}
6361

64-
textarea,
65-
input[type="text"],
66-
input[type="password"],
67-
input[type="datetime"],
68-
input[type="datetime-local"],
69-
input[type="date"],
70-
input[type="month"],
71-
input[type="time"],
72-
input[type="week"],
73-
input[type="number"],
74-
input[type="email"],
75-
input[type="url"],
76-
input[type="search"],
77-
input[type="tel"],
78-
input[type="color"] {
79-
display: block;
80-
border-width: 0 0 1px 0;
81-
padding-top:2px;
82-
line-height: $tff-line-height;
83-
padding-bottom: 1px;
84-
85-
&:focus {
86-
outline: 0;
62+
textarea,
63+
input[type="text"],
64+
input[type="password"],
65+
input[type="datetime"],
66+
input[type="datetime-local"],
67+
input[type="date"],
68+
input[type="month"],
69+
input[type="time"],
70+
input[type="week"],
71+
input[type="number"],
72+
input[type="email"],
73+
input[type="url"],
74+
input[type="search"],
75+
input[type="tel"],
76+
input[type="color"] {
77+
display: block;
78+
border-width: 0 0 1px 0;
79+
padding-top: 2px;
80+
line-height: $tff-line-height;
81+
padding-bottom: 1px;
82+
83+
&:focus {
84+
outline: 0;
85+
}
8786
}
88-
}
8987

90-
input, textarea {
91-
background: none;
88+
input, textarea {
89+
background: none;
90+
}
9291
}
9392

9493
// Light-Theme

src/components/textField/textField.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ function mdTextFloatDirective($mdTheming) {
6565
};
6666
},
6767
template:
68-
'<md-input-group ng-disabled="isDisabled">' +
69-
' <label for="{{fid}}">{{label}}</label>' +
68+
'<md-input-group ng-disabled="isDisabled" tabindex="-1">' +
69+
' <label for="{{fid}}" tabindex="-1">{{label}}</label>' +
7070
' <md-input id="{{fid}}" ng-model="value"></md-input>' +
7171
'</md-input-group>'
7272
};

0 commit comments

Comments
 (0)