Skip to content

bug(Slider): Tooltip is not showed on thumb hover #28211

@alex-waverley

Description

@alex-waverley

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

Slider component doesn't work properly in Safari after changing slider's value.

slider-tooltip-bug.mov

Reason: mat-slider-visual-thumb element is not getting mdc-slider__thumb--with-indicator css class on thumb hover

Reproduction

Steps to reproduce:
StackBlitz link: https://stackblitz.com/edit/components-issue-2ytten?file=src%2Fapp%2Fexample-component.html

  1. hover thumb - tooltop is showed
  2. click on slider to change its value
  3. hover thumb - now tooltip is not showed

Expected Behavior

Tooltip must be always showed on thumb hover.

Actual Behavior

Tooltip is not showed on thumb hover after changing slider's value.

Environment

  • Angular: 16.2.1
  • CDK/Material: 16.2.1
  • Browser: Safari 16.6 (18615.3.12.11.2)
  • Operating System: macOS Ventura 13.5.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2The issue is important to a large percentage of users, with a workaroundarea: material/slider

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions