Skip to content

bug(mat-slider): RTL problem with max value inside menu #33074

@HarelM

Description

@HarelM

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

When updating the upper part of a range slider inside a menu, the max value seems to be at the end of the slider instead of in the middle.
This does not happen for non RTL page.

Reproduction

StackBlitz link: https://stackblitz.com/edit/mat-menu-rtl-slider-bug
Steps to reproduce:

  1. Click the button called click-me
  2. See that the left slider handle is at the end of the slider instead of in the middle
  3. When the slider is moved this is "resolved" until the next time.

Expected Behavior

It should behave similar to non RTL where the slider start at the right position and doesn't look as if it is in the end.

Actual Behavior

See description above.

Environment

  • Angular: 21
  • CDK/Material: 21
  • Browser(s): Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): MacOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: material/slidergemini-triagedLabel noting that an issue has been triaged by geminineeds triageThis issue needs to be triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions