bug(SORT): Not possible to style sorting component #28842
Labels
area: material/sort
area: material/table
P4
A relatively minor issue that is not relevant to core functions
Is this a regression?
The previous version in which this bug was not present was
No response
Description
The table component allows for styling of columns of data. There is an example of doing so in the documentation. https://material.angular.io/components/table/overview#styling-columns
However if you add the Sort component the headers do not have the table's\host component's styles applied.
Reproduction
StackBlitz link: https://stackblitz.com/edit/stackblitz-starters-idfyon?file=src%2Fapp%2Ftable-example%2Ftable-example.component.css
Expected Behavior
With component encapsulation set to emulate the Sort component elements do not recieve the host components attribute (ie. ng-tns-c1137168538). The text for the clickable sortable header should be projected content so it gains the styles of the host component while still being clickable\sortable.
Actual Behavior
Header text does not have styles.
Environment
The text was updated successfully, but these errors were encountered: