@fluid-topics/ft-text-field 1.3.59 → 1.3.61
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.
- package/build/ft-text-field.js +3 -1
- package/build/ft-text-field.light.js +832 -248
- package/build/ft-text-field.min.js +850 -266
- package/package.json +7 -7
package/build/ft-text-field.js
CHANGED
|
@@ -110,6 +110,8 @@ class FtTextField extends toFtFormComponent(FtLitElement) {
|
|
|
110
110
|
name="${ifDefined(this.name)}"
|
|
111
111
|
maxlength="${ifDefined(this.maxLength || undefined)}"
|
|
112
112
|
aria-label="${this.label}"
|
|
113
|
+
aria-describedby="${ifDefined(this.helper ? "helper" : undefined)}"
|
|
114
|
+
aria-invalid="${this.error}"
|
|
113
115
|
autocomplete="${ifDefined(this.autocomplete)}"
|
|
114
116
|
class="ft-typography--body1 ft-text-field--input"
|
|
115
117
|
part="input"
|
|
@@ -134,7 +136,7 @@ class FtTextField extends toFtFormComponent(FtLitElement) {
|
|
|
134
136
|
</div>
|
|
135
137
|
</div>
|
|
136
138
|
${helper ? html `
|
|
137
|
-
<ft-typography class="ft-text-field--helper-text" variant="${FtTypographyVariants.caption}">
|
|
139
|
+
<ft-typography class="ft-text-field--helper-text" variant="${FtTypographyVariants.caption}" id="helper" role="alert">
|
|
138
140
|
${helper}
|
|
139
141
|
</ft-typography>
|
|
140
142
|
` : nothing}
|