Skip to content

docs: Reformat TextArea Accessibility#4058

Draft
moaan-workday wants to merge 5 commits into
Workday:a11yfrom
moaan-workday:text-area-reformat
Draft

docs: Reformat TextArea Accessibility#4058
moaan-workday wants to merge 5 commits into
Workday:a11yfrom
moaan-workday:text-area-reformat

Conversation

@moaan-workday

Copy link
Copy Markdown

Summary

Fixes: #1234

Release Category

Components

Release Note

Optional release note message. Changelog and release summaries will contain a pull request title. This section will add additional notes under that title. This section is not a summary, but something extra to point out in release notes. An example might be calling out breaking changes in a labs component or minor visual changes that need visual regression updates. Remove this section if no additional release notes are required.

BREAKING CHANGES

Optional breaking changes message. If your PR includes breaking changes. It is extremely rare to put breaking changes outside a prerelease/major branch. Anything in this section will show up in release notes. Remove this section if no breaking changes are present.


Checklist

For the Reviewer

  • PR title is short and descriptive
  • PR summary describes the change (Fixes/Resolves linked correctly)
  • PR Release Notes describes additional information useful to call out in a release message or removed if not applicable
  • Breaking Changes provides useful information to upgrade to this code or removed if not applicable

Where Should the Reviewer Start?

Areas for Feedback? (optional)

  • Code
  • Documentation
  • Testing
  • Codemods

Testing Manually

Screenshots or GIFs (if applicable)

Thank You Gif (optional)

@coderabbitai

coderabbitai Bot commented Jul 10, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 31b458c4-2cfd-483b-b426-8bcfdda48be4

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@moaan-workday moaan-workday changed the title Text area reformat docs: text area a11y reformat Jul 10, 2026
@moaan-workday moaan-workday changed the title docs: text area a11y reformat docs: Reformat TextArea Accessibility Jul 10, 2026
ensure proper labeling, error handling, and help text association. See
[FormField's accessibility documentation](/components/inputs/form-field/#accessibility)
for comprehensive guidance on form accessibility best practices.
The primary accessibility goal for `TextArea` is to give every user a visible, persistent label and

@purvas12 purvas12 Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing component-choice guidance: Per the a11y-docs template, add 1–2 sentences in the intro on when to use TextArea vs TextInput (multi-line vs single-line).

<FormField.Field>
<FormField.Input as={TextArea} maxLength={MAX_CHARACTERS} onChange={handleChange} value={value} />
<FormField.Hint>{`${value.length} of ${MAX_CHARACTERS} characters`}</FormField.Hint>
<AriaLiveRegion as={AccessibleHide}>{liveUpdateStr}</AriaLiveRegion>

@purvas12 purvas12 Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incomplete codegen example: The character-limit snippet references liveUpdateStr and handleChange without defining debounce logic. Add a brief comment (e.g. // debounce into liveUpdateStr) or trim the snippet to only show FormField.Hint count + link to the full guide example.

debounce `AriaLiveRegion` updates so screen reader users are not interrupted while typing.
- **Disabling resize unnecessarily**: Do not set `resize` to `none` unless there is a strong design or
layout requirement; users lose a visual comfort affordance that supports low-vision and motor needs.
- **Standalone `TextArea` without `FormField`**: Do not render `<TextArea />` outside `FormField.Input`;

@purvas12 purvas12 Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant anti-patterns: "Unlabeled text areas" (line 295) and "Standalone TextArea without FormField" overlap — consider merging into one bullet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants