Skip to content

Commit d95a80a

Browse files
committed
refactor(VTextField): use border-image instead of border-style
see 2dec42a and #4615
1 parent f936c97 commit d95a80a

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/stylus/components/_text-fields.styl

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ 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+
border-image: repeating-linear-gradient(
15+
to right,
16+
$material.text.disabled 0px,
17+
$material.text.disabled 2px,
18+
transparent 2px,
19+
transparent 4px
20+
) 1 repeat
21+
1222
&__prefix,
1323
&__suffix
1424
color: $material.text.secondary
@@ -154,10 +164,6 @@ rtl(v-text-field-rtl, "v-text-field")
154164
border-width: thin 0 thin 0
155165
transform: scaleX(0)
156166

157-
&.v-input--is-disabled
158-
.v-input__slot::before
159-
border-style: dashed
160-
161167
&__details
162168
display: flex
163169
flex: 1 0 auto

0 commit comments

Comments
 (0)