Skip to content

[Slider] Range slider track is given wrong "margin-block-start" #1205

@Westbrook

Description

@Westbrook

The roughly margin-block-start: -1px; rule in the following line:

margin-block-start: calc(var(--spectrum-slider-track-height) / -2);

Is overridden as margin-block-start: 0; in the following line:

https://github.com/adobe/spectrum-css/blob/main/components/slider/index.css#L180

Naively, the following would appear to cure this situation:

margin-block: calc(var(--spectrum-slider-track-height) / -2) var(--spectrum-slider-range-track-reset);

I'd be happy to submit a PR if this seemed appropriate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions