This change affects all implementations of the text box component.
<div class="form-field-guidance-text">
I am some guidance text
</div>
<input
class="form-control"
type="text"
id="TextBoxWithGuidanceText"
name="TextBoxWithGuidanceText" />
<div id="TextBoxWithGuidanceText-guidance"
class="form-field-guidance-text">
I am some guidance text
</div>
<input
class="form-control"
aria-describedby="TextBoxWithGuidanceText-guidance"
type="text"
id="TextBoxWithGuidanceText"
name="TextBoxWithGuidanceText" />
This change improves the accessibility of the text box component by ensuring the text box guidance text is programmatically associated with the related input.
Benefits include:
After updating your Design System packages, we recommend reviewing text box and text box guidance text usage in your application to confirm everything behaves as expected.
Areas worth checking:
Applications not using the NuGet package tag helpers should review any manually maintained text box markup and align it with the updated structure shown above and on the text box page in the form components section.
No changes are expected to form submission, model binding, or data persistence as part of this update.
For peace of mind, you may wish to perform a quick check in consuming applications to confirm text box values continue to submit and save as expected.
This change is not expected to introduce functional issues. A quick review in consuming applications is recommended to confirm the updated markup works as expected in your implementation.
This pattern will be extended to other Design System form components in a future release.
Design System internal reference: 97148