Skip to content

feat(ui): restyle Number & Text field for v4#16419

Merged
JarrodMFlesch merged 57 commits into
mainfrom
v4/number-field
Apr 30, 2026
Merged

feat(ui): restyle Number & Text field for v4#16419
JarrodMFlesch merged 57 commits into
mainfrom
v4/number-field

Conversation

@PatrikKozak
Copy link
Copy Markdown
Contributor

Summary

Restyles the Number field and ReactSelect components for the v4 UI refresh. Adds an InputStepper component with custom chevron buttons to replace native browser spinners, fixes multi-value pill styling with proper 20px height and spacing, and fixes ClearIndicator alignment for single and multi-row layouts.

Also migrates all ReactSelect scss files to css, adds a CircledX icon with tight viewBox, and updates the X and Chevron icons with size prop support.

paulpopus and others added 30 commits April 1, 2026 14:10
Consolidate vars for consistency.
## Summary

Restyles the Point field component for the v4 UI refresh. Adds custom
chevron steppers to replace native browser spinners, implements proper
disabled state styling (transparent background with light border), and
adds a reusable `.form-input-group` class in forms.css for input
wrappers that contain additional elements like steppers.

Also fixes text selection highlighting in form inputs to use browser
defaults.

---------

Co-authored-by: Jessica Rynkar <jrynkar@figma.com>
Restrict parent :focus-within detection to typical input wrappers:
- Only check div/span/label parents (not section/article elements)
- Require ≤5 children (typical for input groups)
- Fixes false positives where section borders were detected as focus indicators
## Summary

Migrates CodeEditor from SCSS to CSS and updates Code/JSON field styling
for the v4 redesign. The CodeEditor now defines transparent Monaco
themes that let CSS variables control the appearance, enabling proper
theming through the new token system.

Also fixes the Code field validation to properly check for empty strings
(not just `undefined`), and adds comprehensive test collection variants
(required, disabled, readOnly) to support visual testing of all field
states.
Copy link
Copy Markdown
Member

@tylandavis tylandavis left a comment

Choose a reason for hiding this comment

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

Number field

  • missing border on hover states
  • focus states on hasMany chips are clipped on top and bottom
  • replace "Select a value" placeholder on hasMany number field with "Enter a number", use text-default-teriary
  • remove transition on border

React Select

  • Chevron icon too far from right edge: use 16px icon, 4px from edge
  • select dropdown group label misalignment
Image

JarrodMFlesch added a commit that referenced this pull request Apr 29, 2026
- [ ] array ([PR](#16370))
- [ ] blocks ([PR](#16384))
- [ ] checkbox
- [ ] code
- [x] collapsible
([PR](#16365))
- [ ] date
- [ ] email
- [ ] group
- [ ] join
- [ ] json
- [ ] number ([PR](#16419))
- [x] point ([PR](#16406)))
- [ ] radio ([PR](#16411))
- [ ] relationship
- [ ] richText
- [ ] row
- [ ] select
- [ ] tabs
- [ ] text
- [ ] textarea
- [ ] upload ([PR](#16422))

---------

Co-authored-by: Jessica Rynkar <jrynkar@figma.com>
Co-authored-by: Jessica Rynkar <67977755+JessRynkar@users.noreply.github.com>
Co-authored-by: Patrik Kozak <35232443+PatrikKozak@users.noreply.github.com>
Co-authored-by: Jarrod Flesch <jarrodmflesch@gmail.com>
Co-authored-by: Jarrod Flesch <30633324+JarrodMFlesch@users.noreply.github.com>
Base automatically changed from v4/ui-redesign to main April 29, 2026 17:10
@JarrodMFlesch JarrodMFlesch requested a review from denolfe as a code owner April 29, 2026 17:10
@PatrikKozak PatrikKozak changed the title feat(ui): restyle Number field and ReactSelect for v4 feat(ui): restyle Number field v4 Apr 29, 2026
@PatrikKozak PatrikKozak changed the title feat(ui): restyle Number field v4 feat(ui): restyle Number & Text field for v4 Apr 30, 2026
@JarrodMFlesch JarrodMFlesch dismissed tylandavis’s stale review April 30, 2026 15:39

need these changes for other fields

@JarrodMFlesch JarrodMFlesch merged commit ad9e171 into main Apr 30, 2026
323 of 328 checks passed
@JarrodMFlesch JarrodMFlesch deleted the v4/number-field branch April 30, 2026 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants