Skip to content

Default slider step to (max - min) / 100#202

Merged
jlowin merged 1 commit intomainfrom
fix/slider-default-step
Feb 26, 2026
Merged

Default slider step to (max - min) / 100#202
jlowin merged 1 commit intomainfrom
fix/slider-default-step

Conversation

@jlowin
Copy link
Member

@jlowin jlowin commented Feb 26, 2026

Radix UI's Slider defaults step to 1, which means a slider with min=0, max=1 only allows selecting 0 or 1. The renderer now computes step = (max - min) / 100 when no explicit step is provided, giving 100 discrete positions regardless of range. This fixes the issue at the renderer level so it works for both Python-generated and hand-written JSON.

@marvin-context-protocol marvin-context-protocol bot added bug Something isn't working. Reports of errors, unexpected behavior, or broken functionality. renderer Related to the TypeScript/React renderer. labels Feb 26, 2026
@jlowin jlowin merged commit 796766e into main Feb 26, 2026
8 checks passed
@jlowin jlowin deleted the fix/slider-default-step branch February 26, 2026 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working. Reports of errors, unexpected behavior, or broken functionality. renderer Related to the TypeScript/React renderer.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant