Skip to content

Stepped Slider: Followup changes and improvements #43412

@jasmussen

Description

@jasmussen

A stepped slider recently landed, allowing you to set padding in multiples of a base unit. There are a few followups to look at.

Fix artifact glitches 🚨

  • Fix artifact glitches with knob

Occasionally (exact steps to reproduce are unclear) but there's occasionally a white artifact on top of the blue knob:

Screenshot 2022-08-19 at 10 44 47

Update the design to remove the knob

  • Move to a segment selection interface instead of the knob

Placing the handle at the end of the current value makes sense when we think of this as a traditional range, but it might be better for each step to act as a handle:

This makes it a bit more obvious that each step acts as an individual button for quicker jumping.

Increase density when unlinked

The unlinked splits each value into a single row which occupies a lot of space in the context of other controls. We can remedy this by splitting the layout into two columns:

Screenshot 2023-02-17 at 10 32 47

Nice to have: Unit multiplier in the padding visualization

  • Show the unit multiplier in the padding visualization, top/right/bottom/left on the padding silhouette

Screenshot 2022-09-16 at 16 05 43


Issue updated Nov 21.

Completed

Replace the labels with numbers

The values 0-7 replace 0, 2x-small, x-small, small, medium, large, x-large, 2x-large

Spacing

Update spacing and labels

Metadata

Metadata

Assignees

Labels

Design SystemIssues related to the system of combining components according to best practices.Needs DevReady for, and needs developer effortsNeeds Figma UpdateNeeds an update to Figma for design purposes[Feature] UI ComponentsImpacts or related to the UI component system[Type] EnhancementA suggestion for improvement.

Type

No type

Projects

Status

🔦 Needs triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions