Skip to content

Adding mat-sort-header breaks the templates flex box layout. #16952

@oleersoy

Description

@oleersoy

Reproduction

Use StackBlitz to reproduce your issue: https://stackblitz.com/fork/components-issue

Here's a stackblitz with the header column words centered using flexbox:
https://stackblitz.com/edit/angular-minimal-material-table-demo-center-header?file=src%2Fapp%2Fapp.component.html

Steps to reproduce:

  1. Add mat-sort-header to the demo

Expected Behavior

The header should maintain the vertical layout of the words.

Actual Behavior

The words are flattened and joined without a space.

Environment

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: material/sort

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions