Skip to content

fix(ui-text-input): detect InstUI icons by displayName, not function name - #2837

Open
matyasf wants to merge 1 commit into
masterfrom
fix/INSTUI-5279-text-input-icon-size
Open

matyasf wants to merge 1 commit into
masterfrom
fix/INSTUI-5279-text-input-icon-size

Conversation

@matyasf

@matyasf matyasf commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • TextInput v2 recognizes InstUI icons in renderBeforeInput/renderAfterInput by displayName instead of the wrapper's function name, which minifiers rename. Icons get the sm/md/lg size matching the input again in minified builds.

Test Plan

  • On a minified build (for example the docs site), open the TextInput page and check that icons in the small, normal and large example scale with the input instead of all staying 24×24.

Fixes INSTUI-5279

🤖 Generated with Claude Code

…name

Icons passed to renderBeforeInput/renderAfterInput were matched by the wrapper's
function name, which minifiers rename. In minified builds the size prop was never
applied and icons stayed at 24px regardless of the input size.

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

github-actions Bot commented Dec 1, 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-2837/

Built to branch gh-pages at 2026-12-01 14:55 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

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

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Visual regression report

Cypress suite: ✅ Passing

Visual diff: ⚠️ Changes detected.

Status Count
Unchanged 110
Changed 1
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 (1)

imagecard-light.png — 10211 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