instructure / instructure/instructure-ui

Form field labels include messages on the component

Open
#2,143 3 comments 2 reactions 1 assignee View on GitHub

@matyasf is already working on this.

Since Sep 16, 2025.

Dominant language
TypeScript
Stars
480
Forks
108
Avg merge
6d 1h
Merged PRs (30d)
16

Description

Background Information

Package Version(s):

10.24.0

Browser:

Chrome (probably all)

OS:

MacOS (probably all)

Device:

MacBook

Component:

FormField

Describe the Issue

Form fields include any messages associated with the component as part of the label. This does mean that a user can click on the error messages to focus on the field but can lead to slightly confusing labels for form elements.

Steps To Reproduce

https://codesandbox.io/p/devbox/s22qpm

Click on the button and you see the innerText of the form label.

Expected Behavior

The messages remain distinct from the label of the form element.

Possibly using https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-errormessage so that the error messages are still associated with the form field. If the message isn't an error then it should probably use https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-describedby

Screenshots
Image
Additional Information

Current Workaround(s):

Not really

Products Affected:

Local tools.

Are you willing to submit a PR to fix?

  • Yes, I'm willing to submit a PR

Requested Priority:

Normal

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.