Skip to content

docs: add message and read-only toggles to the forms guide example - #2843

Open
matyasf wants to merge 3 commits into
masterfrom
docs/forms-guide-example-options
Open

matyasf wants to merge 3 commits into
masterfrom
docs/forms-guide-example-options

Conversation

@matyasf

@matyasf matyasf commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • The Error messages example in the forms guide gets "Show success message", "Make fields read-only" and "Force messages" checkboxes.
  • The branch also carries fix(ui-checkbox,ui-form-field): the required asterisk keeps its color in error state, and fix(ui-text-input,ui-file-drop,ui-number-input): small visual error state fixes.

Test Plan

  • Open the Error messages example in docs/guides/forms.md on the docs app and check that "Show error message" with "Show success message" shows both messages.
  • Check "Make fields read-only" and confirm every field except ColorPicker becomes read-only.
  • With read-only on, check "Force messages" and confirm TextInput keeps its messages visible.

🤖 Generated with Claude Code

matyasf and others added 3 commits December 3, 2026 13:17
…tate fixes (#2825)

## Summary
- `Select` and `SimpleSelect` shows now red error border all the time
there is an error.
- `FileDrop` shows now red error border in error state.
- `NumberInput`: shows now red error focus ring in error state.

## Test Plan
- Open the Error messages example in `docs/guides/forms.md` and check
that SimpleSelect, FileDrop and NumberInput show the red border or focus
ring, including in dark mode.
- Drag a file over a FileDrop and check the accepted and rejected
borders. Check a disabled FileDrop looks dimmed.

Fixes INSTUI-5276

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

The asterisk only received its themed color when the field was invalid, so it changed color on
error even though an error can have causes other than a missing required value. It now always
uses the component's asteriskColor token.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@matyasf matyasf self-assigned this Dec 3, 2026
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.2

QR code for preview link

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

Built to branch gh-pages at 2026-12-03 13:22 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

github-actions Bot pushed a commit that referenced this pull request Dec 3, 2026
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Visual regression report

Cypress suite: ✅ Passing

Visual diff: ⚠️ Changes detected.

Status Count
Unchanged 107
Changed 4
New 0
Removed 0

Accessibility (axe): ✅ No violations.

📊 View full report — click a screenshot's ⚠ badge to see each violation boxed on the image, with the offending element named and contrast failures shown as color swatches.

Diff images (4)

datetimeinput-dark.png — 19 pixels differ

datetimeinput-light.png — 19 pixels differ

imagecard-light.png — 10211 pixels differ

tooltip-light.png — 15266 pixels differ

Baselines come from the visual-baselines branch. They refresh on every merge to master. The Cypress suite line covers the a11y and console-error assertions — a ❌ there means the suite found real issues even if the visual diff is clean.

This branch has not been deployed

No deployments
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.

1 participant