Skip to content

feat(ui-checkbox): add aria-invalid attribute to Checkbox#2642

Open
joyenjoyer wants to merge 1 commit into
masterfrom
checkbox-aria-invalid
Open

feat(ui-checkbox): add aria-invalid attribute to Checkbox#2642
joyenjoyer wants to merge 1 commit into
masterfrom
checkbox-aria-invalid

Conversation

@joyenjoyer

Copy link
Copy Markdown
Contributor

Summary

  • Add aria-invalid="true" attribute to Checkbox input when error messages are present
  • Applies to both v1 and v2 components
  • Added unit tests to verify behavior

Test Plan

  • Manual verification in the docs app: Navigate to Checkbox component, add error messages via props, verify aria-invalid attribute is present in the DOM
  • Check that aria-invalid is not set when there are no error messages (or only hint/success messages)

Relates to INSTUI-5102

🤖 Generated with Claude Code

…tion errors are present

Sets aria-invalid="true" on the Checkbox input element when error messages are
present, enabling assistive technologies and custom form logic to detect validation
errors.

Relates to INSTUI-5102

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@joyenjoyer joyenjoyer self-assigned this Jul 17, 2026
@joyenjoyer
joyenjoyer requested review from balzss and git-nandor July 17, 2026 10:25
@github-actions

Copy link
Copy Markdown
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://instructure.design/pr-preview/pr-2642/

Built to branch gh-pages at 2026-07-17 10:27 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

github-actions Bot pushed a commit that referenced this pull request Jul 17, 2026
@github-actions

Copy link
Copy Markdown

Visual regression report

No changes.

Status Count
Unchanged 32
Changed 0
New 0
Removed 0

📊 View full report

Baselines come from the visual-baselines branch. They refresh on every merge to master.

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.

2 participants