Skip to content

bug(mat-mdc-slider): thumb should use % instead of px #24590

Closed
@tomasdev

Description

@tomasdev

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

https://stackblitz.com/edit/angular-us2jqe-a7chp1?file=src%2Fapp%2Fslider-overview-example.ts

The thumb is not correctly positioned when resizing the container of a mat-mdc-slider. However, the track is.

Reproduction

Steps to reproduce:

  1. Have a mat-mdc-slider with CSS width: 100%
  2. Resize it's container with any means other than window resize (i.e., a UX could have a panel that pushes content meaning the container will be less wide)

Screen Shot 2022-03-14 at 4 21 19 PM

Expected Behavior

Thumb and track are always aligned

Actual Behavior

Thumb and track stop being aligned

Environment

  • Angular: 13
  • CDK/Material: 13
  • Browser(s): All
  • Operating System (e.g. Windows, macOS, Ubuntu): All

Metadata

Metadata

Assignees

Labels

GThis is is related to a Google internal issueP3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/slider

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions