Skip to content

[Range] Update names and anatomy based on CSSWG decision #1197

Open
@brechtDR

Description

@brechtDR

The CSSWG has decided to use the slider-prefix in pseudo-elements for input[type="range"]

w3c/csswg-drafts#9830

I the current Open UI explainer, this is still different, should we update these names?

Current naming we have is:

::range-track: Represents the main track of the range input.
::range-fill: Represents the filled portion of the track.
::range-thumb: Represents the draggable handle(s).
::range-tick: Represents individual tick marks on the range input.
::range-tick-label: Represents the label associated with each tick mark. This pseudo-element should be able to handle the content property for custom content. By default, the content is the value of the tick.
::range-segment: Represents sections of the track between handles in multi-handle ranges.

Extra question: Do we simply change "range" with "slider"? Or is it interesting to keep "range" for things such as segments?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions