You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Don't allow both trailing checkmark and clear button to be present
198
-
* at the same time
199
-
*/
200
-
success() {
201
-
this.validateTrailingIcon()
202
-
},
203
-
204
-
canClear() {
205
-
this.validateTrailingIcon()
206
-
},
207
-
208
201
label() {
209
202
this.validateLabel()
210
203
},
@@ -223,12 +216,6 @@ export default {
223
216
this.$emit('trailing-button-click', event)
224
217
},
225
218
226
-
validateTrailingIcon() {
227
-
if (this.canClear&&this.success) {
228
-
thrownewError('success and canClear props cannot be true at the same time')
229
-
}
230
-
},
231
-
232
219
validateLabel() {
233
220
if (this.label&&!this.labelOutside) {
234
221
thrownewError('You need to add a label to the textField component. Either use the prop label or use an external one, as per the example in the documentation')
@@ -273,6 +260,14 @@ export default {
273
260
cursor: text;
274
261
}
275
262
263
+
&--success {
264
+
border-color: var(--color-success) !important; //Override hover border color
265
+
}
266
+
267
+
&--error {
268
+
border-color: var(--color-error) !important; //Override hover border color
0 commit comments