Skip to content

Commit 2dec42a

Browse files
committed
fix(VTextField): show dashed underline when disabled
see #4615 still need to figure out something with background-image, but this'll do for now
1 parent 6754fc4 commit 2dec42a

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

src/stylus/components/_text-fields.styl

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,6 @@ v-text-field($material)
99
.v-input__slot:hover:before
1010
border-color: $material.text.primary
1111

12-
&.v-input--is-disabled
13-
.v-input__slot:before
14-
background-color: transparent
15-
background-image: linear-gradient(
16-
to right,
17-
$material.text.disabled 0,
18-
$material.text.disabled 33%,
19-
transparent 0
20-
)
21-
2212
&__prefix,
2313
&__suffix
2414
color: $material.text.secondary
@@ -155,10 +145,6 @@ rtl(v-text-field-rtl, "v-text-field")
155145
width: 100%
156146

157147
&:before
158-
background-color: transparent
159-
background-position: bottom
160-
background-size: 3px 1px
161-
background-repeat: repeat-x
162148
border-style: solid
163149
border-width: thin 0 0 0
164150

@@ -168,6 +154,10 @@ rtl(v-text-field-rtl, "v-text-field")
168154
border-width: thin 0 thin 0
169155
transform: scaleX(0)
170156

157+
&.v-input--is-disabled
158+
.v-input__slot::before
159+
border-style: dashed
160+
171161
&__details
172162
display: flex
173163
flex: 1 0 auto

0 commit comments

Comments
 (0)