@momentum-design/components 0.28.7 → 0.28.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -313,6 +313,7 @@ class Input extends FormInternalsMixin(DataAriaLabelMixin(FormfieldWrapper)) {
|
|
313
313
|
?required="${!!this.requiredLabel}"
|
314
314
|
type="text"
|
315
315
|
aria-describedby="${ifDefined(this.helpText ? FORMFIELD_DEFAULTS.HELPER_TEXT_ID : '')}"
|
316
|
+
aria-invalid="${this.helpTextType === 'error' ? 'true' : 'false'}"
|
316
317
|
placeholder=${ifDefined(this.placeholder)}
|
317
318
|
minlength=${ifDefined(this.minlength)}
|
318
319
|
maxlength=${ifDefined(this.maxlength)}
|
@@ -98,16 +98,16 @@ const styles = [css `
|
|
98
98
|
color: var(--mdc-input-support-text-color);
|
99
99
|
}
|
100
100
|
|
101
|
-
:host([help-text-type="error"]) .input-container {
|
101
|
+
:host([help-text-type="error"]) .input-container, :host([help-text-type="error"]) .input-container:focus-within {
|
102
102
|
border-color: var(--mdc-input-error-border-color);
|
103
103
|
}
|
104
|
-
:host([help-text-type="warning"]) .input-container {
|
104
|
+
:host([help-text-type="warning"]) .input-container, :host([help-text-type="warning"]) .input-container:focus-within {
|
105
105
|
border-color: var(--mdc-input-warning-border-color);
|
106
106
|
}
|
107
|
-
:host([help-text-type="success"]) .input-container {
|
107
|
+
:host([help-text-type="success"]) .input-container, :host([help-text-type="success"]) .input-container:focus-within {
|
108
108
|
border-color: var(--mdc-input-success-border-color);
|
109
109
|
}
|
110
|
-
:host([help-text-type="priority"]) .input-container {
|
110
|
+
:host([help-text-type="priority"]) .input-container, :host([help-text-type="priority"]) input-container:focus-within {
|
111
111
|
border-color: var(--mdc-input-primary-border-color);
|
112
112
|
}
|
113
113
|
|
package/package.json
CHANGED