Skip to content

bug(Mat-Slider): showTickMarks not displaying tick marks #31590

@Shripad98600

Description

@Shripad98600

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

While using the Angular Material mat-slider component, I encountered an issue where enabling the showTickMarks input does not render tick marks on the slider as expected.

Reproduction

StackBlitz link:
Steps to reproduce:

  1. Add a component in the template.
  2. Set the showTickMarks input to true.
  3. Provide step, min, and max values.
  4. Observe that tick marks are not displayed on the slider.

Expected Behavior

Tick marks should be visible on the slider when showTickMarks is set to true and valid step, min, and max values are provided.

Actual Behavior

Tick marks are not rendered, even though all required inputs are set.

Environment

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An 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