Skip to content

bug(mat-slider): thumb label affected by parent word-break #27612

@gpaimla

Description

@gpaimla

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

Upgraded to mdc based components and the sliders thumb label started looking like this:
image
found out the culprit to be a word-break: break-word; on one of the parent divs, not sure if this is intended

Reproduction

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

  1. move slider thumb

Expected Behavior

slider thumb label shouldn't break on any parent having word-break

Actual Behavior

slider thumb label inherits word-break

Environment

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P5The team acknowledges the request but does not plan to address it, it remains open for discussionarea: material/slidergood first issueThis issue is a good place to start for first time contributors to the project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions